| <?xml version="1.0" encoding="UTF-8" ?> |
| <!DOCTYPE struts PUBLIC |
| "-//Apache Software Foundation//DTD Struts Configuration 2.5//EN" |
| "https://struts.apache.org/dtds/struts-2.5.dtd"> |
| <!-- |
| - This file is included by the struts.xml file as an example |
| - of how to break up the configuration file into multiple files. |
| --> |
| <struts> |
| <package name="example" namespace="/example" extends="struts-default"> |
| |
| <result-types> |
| <result-type name="tiles" class="org.apache.struts2.views.tiles.TilesResult"/> |
| </result-types> |
| |
| <action name="HelloWorld" class="org.demo.example.HelloWorld"> |
| <result type="tiles">hello</result> |
| </action> |
| |
| <action name="HelloWorld2" class="org.demo.example.HelloWorld"> |
| <result type="tiles">hello2</result> |
| </action> |
| |
| <action name="HelloWorld3" class="org.demo.example.HelloWorld"> |
| <result type="tiles">hello3</result> |
| </action> |
| |
| <action name="HelloWorld4" class="org.demo.example.HelloWorld"> |
| <result type="tiles">hello4</result> |
| </action> |
| |
| <action name="Login_*" method="{1}" class="org.demo.example.Login"> |
| <result name="input">/example/Login.jsp</result> |
| <result type="redirectAction">Menu</result> |
| </action> |
| |
| <action name="*" class="org.demo.example.ExampleSupport"> |
| <result>/example/{1}.jsp</result> |
| </action> |
| |
| <!-- Add additional "example" package actions here. --> |
| |
| </package> |
| </struts> |