Return To Action Icon

The Return to Action icon shows that an action method reruns the last action:

For example, if a user enters information on a JSP such as an airport destination, and clicks the submit button triggering an action method that will interpret this information, you can display a matching airport code on the next page with the option to continue, or allow the user to change the airport code and try again. In the last case the previous action can be rerun to interpret the user information.

The corresponding code for the action method in the JPF controller file is:

 /**
  * @jpf:action
  * @jpf:forward name="again" return-to="previousAction"
  */
  public Forward tryagain()
  {
     return new Forward( "again" );
  }

Related Topics

Action Icon

Begin Action Icon

Exit Icon

JavaServer Page (JSP) Icon

Page Flow Icon

Return to Page Icon

Guide to Building Page Flows

Page Flow and JSP Reference