THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block | ||||
---|---|---|---|---|
| ||||
<package name="edit" extends="struts-default" namespace="/edit"> <action name="/person/*" class="org.apache.struts.webapp.example.EditAction"> <param name="id">{1}</param> <result name="failure" path="<result>/mainMenu.jsp"jsp</>result> </action> </package> |
When a URL like /edit/person/123
is requested, EditAction will be called, and its "id" field will be set to 123.
...