com.opensymphony.webwork.views.jsp
Class ActionTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
com.opensymphony.webwork.views.jsp.WebWorkTagSupport
com.opensymphony.webwork.views.jsp.ParameterizedTagSupport
com.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
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 |
ActionTag
public ActionTag()
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