Home > Articles > Programming > Java

  • Print
  • + Share This
From the author of

Augment the action.xml File

Add action entries in action.xml for the new action classes, as shown in Listing 4.

Listing 4 action.xml—Entries for the New Action Classes

  <action path="/create"
    actionClass="CreateReplyAction"
    formAttribute="messageForm"
    formClass="Message">
        <forward name="help" path="/help.jsp"/>
        <forward name="success" path="/message.jsp"/>
  </action>

  <action path="/show"
    actionClass="ShowMessageAction"
    formAttribute="messageForm"
    formClass="Message">
        <forward name="help" path="/help.jsp"/>
        <forward name="success" path="/showmessage.jsp"/>
  </action>
  • + Share This
  • 🔖 Save To Your Account