webwork.action.standard
Class JSP

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

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.10 $
Author:
Rickard Öberg (rickard@middleware-company.com)
See Also:
Action, Serialized Form

Nested Class Summary
 class JSP.WrapperHttpServletResponse
          Response wrapper.
 
Field Summary
 
Fields inherited from class webwork.action.ActionSupport
command, errorMap, errorMessages, log
 
Fields inherited from interface webwork.action.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
JSP()
           
 
Method Summary
 java.lang.String execute()
          Execute the wrapper.
 java.lang.String getPage()
          Get name of the page that is wrapped
 void setPage(java.lang.String aPageName)
          Set the name of the page that is to be executed.
 
Methods inherited from class webwork.action.ActionSupport
addError, addErrorMessage, addIllegalArgumentException, doDefault, doExecute, doValidation, getActionName, getErrorMessages, getErrors, getHasErrorMessages, getHasErrors, getLocale, getPropertyEditorMessage, getText, getTexts, getTexts, invalidInput, invokeCommand, isCommand, setCommand, setErrorMessages, setErrors, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSP

public JSP()
Method Detail

getPage

public java.lang.String getPage()
Get name of the page that is wrapped


setPage

public void setPage(java.lang.String aPageName)
Set the name of the page that is to be executed.

See Also:
JspActionFactoryProxy

execute

public java.lang.String execute()
                         throws java.lang.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:
java.lang.Exception


Copyright © 2001-2003 WebWork All Rights Reserved.