com.opensymphony.webwork.views.jsp
Class ActionTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended bycom.opensymphony.webwork.views.jsp.WebWorkTagSupport
          extended bycom.opensymphony.webwork.views.jsp.ParameterizedTagSupport
              extended bycom.opensymphony.webwork.views.jsp.ActionTag
All Implemented Interfaces:
IterationTag, ParamTag.Parametric, Serializable, Tag, WebWorkStatics
Direct Known Subclasses:
AppendIteratorTag, IteratorGeneratorTag, MergeIteratorTag, SortIteratorTag, SubsetIteratorTag

public class ActionTag
extends ParameterizedTagSupport
implements WebWorkStatics

ActionTag enables developers to call Actions directly from a JSP page by specifying the Action name and an optional namespace. The body content of the tag is used to render the results from the Action. Any Result processor defined for this Action in xwork.xml will be ignored.

Version:
$Id: ActionTag.java,v 1.31 2004/11/27 21:07:49 jcarreira Exp $
Author:
Pat Lightbody, Matt Ho <matt@indigoegg.com>
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.opensymphony.webwork.views.jsp.WebWorkTagSupport
ALT_SYNTAX
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface com.opensymphony.webwork.WebWorkStatics
HTTP_REQUEST, HTTP_RESPONSE, PAGE_CONTEXT, SERLVET_DISPATCHER, SERVLET_CONFIG, SERVLET_DISPATCHER
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
ActionTag()
           
 
Method Summary
 int doEndTag()
           
 int doStartTag()
           
 void setExecuteResult(boolean executeResult)
          If set to true the result of an action will be executed.
 void setIgnoreContextParams(boolean ignoreContextParams)
          If set to true, the PARAMETERS map from the original context will be ignored
 void setName(String name)
          Sets the name of the action to be invoked
 void setNamespace(String namespaceAttr)
          Sets the namespace for the action.
 
Methods inherited from class com.opensymphony.webwork.views.jsp.ParameterizedTagSupport
addParameter, getParameters, reset
 
Methods inherited from class com.opensymphony.webwork.views.jsp.WebWorkTagSupport
findString, findValue, findValue, getStack, toString, translateVariables
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionTag

public ActionTag()
Method Detail

setExecuteResult

public void setExecuteResult(boolean executeResult)
If set to true the result of an action will be executed.


setIgnoreContextParams

public void setIgnoreContextParams(boolean ignoreContextParams)
If set to true, the PARAMETERS map from the original context will be ignored


setName

public void setName(String name)
Sets the name of the action to be invoked

Parameters:
name - the name of the Action as defined in the xwork.xml file

setNamespace

public void setNamespace(String namespaceAttr)
Sets the namespace for the action. If null, this will default to "default"


doEndTag

public int doEndTag()
             throws JspException
Specified by:
doEndTag in interface Tag
Throws:
JspException

doStartTag

public int doStartTag()
               throws JspException
Specified by:
doStartTag in interface Tag
Throws:
JspException

WebWork Project Page