Class JSP

java.lang.Object
webwork.action.ActionSupport
webwork.action.standard.JSP
All Implemented Interfaces:
Serializable, Action, IllegalArgumentAware

public class JSP extends ActionSupport
JSP execution wrapper. This action allows JSP pages to be executed as actions.

The JSP page should set the request attribute "result" to the result status. Well defined result status constants are defined in the Action interface.

Version:
$Revision: 1.11 $
Author:
Rickard Öberg (rickard@middleware-company.com)
See Also:
  • Constructor Details

    • JSP

      public JSP()
  • Method Details

    • getPage

      public String getPage()
      Get name of the page that is wrapped
    • setPage

      public void setPage(String aPageName)
      Set the name of the page that is to be executed.
      See Also:
    • execute

      public String execute() throws Exception
      Execute the wrapper. This will forward to the given JSP-page, which then can execute arbitrary code (possibly using tag libraries). The JSP page should then set the "result" request attribute to the result state of the execution.

      Any content generated by the JSP page will be thrown away.

      Specified by:
      execute in interface Action
      Overrides:
      execute in class ActionSupport
      Returns:
      view
      Throws:
      Exception - thrown if a system level exception occurs. Application level exceptions should be handled by returning an error value, such as Action.ERROR.