Package webwork.action.standard
Class JSP
java.lang.Object
webwork.action.ActionSupport
webwork.action.standard.JSP
- All Implemented Interfaces:
Serializable,Action,IllegalArgumentAware
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:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class webwork.action.ActionSupport
command, errorMap, errorMessages, log -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class webwork.action.ActionSupport
addError, addErrorMessage, addIllegalArgumentException, doDefault, doExecute, doValidation, getActionName, getCommandName, getErrorMessages, getErrors, getHasErrorMessages, getHasErrors, getLocale, getPropertyEditorMessage, getText, getTexts, getTexts, getTimezone, invalidInput, invokeCommand, isCommand, setCommand, setErrorMessages, setErrors, validate
-
Constructor Details
-
JSP
public JSP()
-
-
Method Details
-
getPage
Get name of the page that is wrapped -
setPage
Set the name of the page that is to be executed.- See Also:
-
execute
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:
executein interfaceAction- Overrides:
executein classActionSupport- 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.
-