mirror of
https://github.com/apache/struts.git
synced 2026-08-11 01:27:14 +00:00
970251ff95
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1221225 13f79535-47bb-0310-9956-ffa450edef68
75 lines
3.0 KiB
XML
75 lines
3.0 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<!DOCTYPE struts PUBLIC
|
|
"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
|
|
"http://struts.apache.org/dtds/struts-2.3.dtd">
|
|
|
|
<struts>
|
|
<package name="conversion" namespace="/conversion" extends="struts-default">
|
|
|
|
<!-- Example populating a List inside an Action -->
|
|
<action name="enterPersonsInfo" method="input"
|
|
class="org.apache.struts2.showcase.conversion.PersonAction">
|
|
<result>enterPersonInfo.jsp</result>
|
|
</action>
|
|
<action name="submitPersonInfo" method="submit"
|
|
class="org.apache.struts2.showcase.conversion.PersonAction">
|
|
<result>showPersonInfo.jsp</result>
|
|
<result name="input">enterPersonInfo.jsp</result>
|
|
</action>
|
|
<action name="showPersonJspCode">
|
|
<result type="plainText">/conversion/enterPersonInfo.jsp</result>
|
|
</action>
|
|
<action name="showPersonActionJavaCode">
|
|
<result type="plainText">/conversion/PersonAction.java.txt</result>
|
|
</action>
|
|
<action name="showPersonJavaCode">
|
|
<result type="plainText">/conversion/Person.java.txt</result>
|
|
</action>
|
|
|
|
|
|
<!-- Example populating a Set inside an Action -->
|
|
<action name="enterAddressesInfo" class="org.apache.struts2.showcase.conversion.AddressAction" method="input">
|
|
<result>enterAddressInfo.jsp</result>
|
|
</action>
|
|
<action name="submitAddressesInfo" class="org.apache.struts2.showcase.conversion.AddressAction" method="submit">
|
|
<result>showAddressInfo.jsp</result>
|
|
<result name="input">enterAddressInfo.jsp</result>
|
|
</action>
|
|
<action name="showAddressJspCode">
|
|
<result type="plainText">/conversion/enterAddressInfo.jsp</result>
|
|
</action>
|
|
<action name="showAddressActionJavaCode">
|
|
<result type="plainText">/conversion/AddressAction.java.txt</result>
|
|
</action>
|
|
<action name="showAddressJavaCode">
|
|
<result type="plainText">/conversion/Address.java.txt</result>
|
|
</action>
|
|
|
|
|
|
<!-- Example populating a List with Tiger 5 Enum -->
|
|
<action name="enterOperationEnumInfo" class="org.apache.struts2.showcase.conversion.OperationsEnumAction" method="input">
|
|
<result>enterOperations.jsp</result>
|
|
</action>
|
|
<action name="submitOperationEnumInfo" class="org.apache.struts2.showcase.conversion.OperationsEnumAction" method="submit">
|
|
<result>showOperations.jsp</result>
|
|
<result name="input">enterOperations.jsp</result>
|
|
</action>
|
|
<action name="showEnumJspCode">
|
|
<result type="plainText">/conversion/enterOperations.jsp</result>
|
|
</action>
|
|
<action name="showOperationsEnumJavaCode">
|
|
<result type="plainText">/conversion/OperationsEnum.java.txt</result>
|
|
</action>
|
|
<action name="showOperationEnumActionJavaCode">
|
|
<result type="plainText">/conversion/OperationsEnumAction.java.txt</result>
|
|
</action>
|
|
<action name="showEnumTypeConverterJavaCode">
|
|
<result type="plainText">/conversion/EnumTypeConverter.java.txt</result>
|
|
</action>
|
|
<action name="showOperationsEnumActionConversionProperties">
|
|
<result type="plainText">/conversion/OperationsEnumActionConversion.txt</result>
|
|
</action>
|
|
|
|
</package>
|
|
</struts>
|