Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
xml
xml
<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.

...