net.mlw.vlh.web.tag
Class ActionTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
net.mlw.vlh.web.tag.ConfigurableTag
net.mlw.vlh.web.tag.ActionTag
- All Implemented Interfaces:
- Attributeable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, ParamAddable, Serializable, javax.servlet.jsp.tagext.Tag
- public class ActionTag
- extends ConfigurableTag
- implements ParamAddable
This tag creates action. It is ment to be used along with ControlsTag
<vlh:action url="/delete.do?" customParameters=" <%=HashMapOfCustomParams%>">
<vlh:addParam name="rowId" property="id" temp="true"/>
<vlh:addParam name="rowStaticParamName" value="CommonForAllRows" temp="true"/>
Temp dynamic and static params.
</vlh:action>
- Version:
- $Revision: 1.9 $ $Date: 2005/11/23 14:51:53 $ $Author: smarek $
- Author:
- Andrej Zachar
- See Also:
- Serialized Form
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
bodyContent |
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, pageContext |
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag |
EVAL_BODY_BUFFERED, EVAL_BODY_TAG |
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 |
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
doAfterBody, doInitBody, getBodyContent, getPreviousOut, setBodyContent |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.servlet.jsp.tagext.Tag |
getParent, setPageContext, setParent |
ACTION_TEMP_PARAM_PREFIX
public static final String ACTION_TEMP_PARAM_PREFIX
- This prefix is used to recognize, which url parameters are temporaly
requested for an action.
- Default is set as String "ACT"
- See Also:
- Constant Field Values
ActionTag
public ActionTag()
doStartTag
public int doStartTag()
throws javax.servlet.jsp.JspException
- Specified by:
doStartTag
in interface javax.servlet.jsp.tagext.Tag
- Throws:
javax.servlet.jsp.JspException
doEndTag
public int doEndTag()
throws javax.servlet.jsp.JspException
- Specified by:
doEndTag
in interface javax.servlet.jsp.tagext.Tag
- Overrides:
doEndTag
in class ConfigurableTag
- Throws:
javax.servlet.jsp.JspException
- See Also:
Tag.doEndTag()
setCustomParameters
public void setCustomParameters(HashMap customParameters)
- Parameters:
customParameters
- The customParameters to encode in the action's
url.
setUrl
public void setUrl(String url)
- Parameters:
url
- The base url to set.
addParam
public void addParam(String key,
String value)
- Add parameters to url for an action.
url ? key = value &
- Specified by:
addParam
in interface ParamAddable
- Parameters:
value
- The value of the pram.
release
public void release()
- Called on a Tag handler to release state.
The page compiler guarantees that JSP page implementation
objects will invoke this method on all tag handlers,
but there may be multiple invocations on doStartTag and doEndTag in between.
- Specified by:
release
in interface javax.servlet.jsp.tagext.Tag
- Overrides:
release
in class ConfigurableTag
- See Also:
Tag.release()
Copyright © 2003-2006 mlavilson. All Rights Reserved.