|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
org.apache.struts.taglib.HtmlPropertyTag
Custom tag implementation that acts like
<jsp:getProperty>
but encodes the output stream so that
HTML-related characters do not cause difficulties.
Field Summary | |
private static MessageResources |
messages
The message resources for this package. |
private java.lang.String |
name
The name of the object instance from which the property is obtained. |
private java.lang.String |
property
The name of the property to get. |
Constructor Summary | |
HtmlPropertyTag()
Construct a new instance of this tag. |
Method Summary | |
int |
doStartTag()
Process the start tag. |
java.lang.String |
getName()
Return the object name. |
java.lang.String |
getProperty()
Return the property name. |
void |
release()
Release any acquired resources. |
void |
setName(java.lang.String name)
Set the object name. |
void |
setProperty(java.lang.String property)
Set the property name. |
Field Detail |
private java.lang.String name
private static MessageResources messages
private java.lang.String property
Constructor Detail |
public HtmlPropertyTag()
Method Detail |
public java.lang.String getName()
public void setName(java.lang.String name)
name
- The new object namepublic java.lang.String getProperty()
public void setProperty(java.lang.String property)
property
- The new property namepublic int doStartTag() throws javax.servlet.jsp.JspException
JspException
- if a JSP exception has occurredpublic void release()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |