org.apache.struts.taglib
Class EncodeURLTag

org.apache.struts.taglib.EncodeURLTag

public final class EncodeURLTag

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

Field Summary
private static MessageResources messages
          The message resources for this package.
private  java.lang.String url
          The URL to be encoded.
 
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.
 

Field Detail

messages

private static MessageResources messages
The message resources for this package.

url

private java.lang.String url
The URL to be encoded.
Constructor Detail

EncodeURLTag

public EncodeURLTag()
Construct a new instance of this tag.
Method Detail

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.
Throws:
JspException - if a JSP exception has occurred

release

public void release()
Release any acquired resources.


Copyright © 2000-2002 - Apache Software Foundation