org.apache.taglibs.response
Class SetStatusTag
java.lang.Object
|
+--javax.servlet.jsp.tagext.TagSupport
|
+--org.apache.taglibs.response.SetStatusTag
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.jsp.tagext.Tag
- public class SetStatusTag
- extends javax.servlet.jsp.tagext.TagSupport
JSP Tag setStatus, used to set the status code for the HTTP Response.
JSP Tag Lib Descriptor
<name>setStatus</name>
<tagclass>org.apache.taglibs.response.SetStatusTag</tagclass>
<bodycontent>empty</bodycontent>
<info>Set the status code for the HTTP Response.</info>
<attribute>
<name>status</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
- Author:
- Glenn Nielsen
- See Also:
- Serialized Form
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, pageContext |
Fields inherited from interface javax.servlet.jsp.tagext.Tag |
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Method Summary |
int |
doEndTag()
Method called at end of tag which sets the HTTP Response status code. |
void |
setStatus(java.lang.String stat)
Required attribute status, set the status code to return. |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doStartTag, 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 |
SetStatusTag
public SetStatusTag()
doEndTag
public final int doEndTag()
throws javax.servlet.jsp.JspException
- Method called at end of tag which sets the HTTP Response status code.
- Overrides:
doEndTag
in class javax.servlet.jsp.tagext.TagSupport
- Returns:
- SKIP_BODY
setStatus
public final void setStatus(java.lang.String stat)
- Required attribute status, set the status code to return.
The status must be a text string for a status code as
defined in java class HttpServletResponse. For example,
SC_OK to return HTTP status code 200.
- Parameters:
String
- Status Code name, e.g. "SC_OK"
Copyright ? 2000 Apache Software Foundation. All Rights Reserved.