org.apache.struts.taglib
Class EncodeURLTag
java.lang.Object
|
+--javax.servlet.jsp.tagext.TagSupport
|
+--org.apache.struts.taglib.EncodeURLTag
- All Implemented Interfaces:
- javax.servlet.jsp.tagext.IterationTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag
- public final class EncodeURLTag
- extends javax.servlet.jsp.tagext.TagSupport
Custom tag implementation that acts like
<jsp:getProperty> but encodes the output stream so that
HTML-related characters do not cause difficulties.
- Version:
- $Revision: 1.3 $ $Date: 2000/07/17 16:37:45 $
- Author:
- Craig R. McClanahan
- See Also:
- Serialized Form
|
Field Summary |
private static MessageResources |
messages
The message resources for this package. |
private java.lang.String |
url
The URL to be encoded. |
| Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, pageContext, parent, values |
| 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 |
EncodeURLTag()
Construct a new instance of this tag. |
|
Method Summary |
int |
doStartTag()
Process the start tag. |
java.lang.String |
getUrl()
Return the URL to be encoded. |
void |
release()
Release any acquired resources. |
void |
setUrl(java.lang.String url)
Set the URL to be encoded. |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue |
| Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
messages
private static MessageResources messages
- The message resources for this package.
url
private java.lang.String url
- The URL to be encoded.
EncodeURLTag
public EncodeURLTag()
- Construct a new instance of this tag.
getUrl
public java.lang.String getUrl()
- Return the URL to be encoded.
setUrl
public void setUrl(java.lang.String url)
- Set the URL to be encoded.
- Parameters:
url - The new URL
doStartTag
public int doStartTag()
throws javax.servlet.jsp.JspException
- Process the start tag.
- Overrides:
doStartTag in class javax.servlet.jsp.tagext.TagSupport
- Throws:
javax.servlet.jsp.JspException - if a JSP exception has occurred
release
public void release()
- Release any acquired resources.
- Overrides:
release in class javax.servlet.jsp.tagext.TagSupport
Copyright © 2000-2002 - Apache Software Foundation