|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
org.apache.struts.webapp.example.LinkUserTag
public class LinkUserTag
Generate a URL-encoded hyperlink to the specified URI, with associated query parameters selecting a specified User.
Field Summary | |
---|---|
protected static MessageResources |
messages
The message resources for this package. |
protected java.lang.String |
page
The hyperlink URI. |
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
id, pageContext |
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 | |
---|---|
LinkUserTag()
|
Method Summary | |
---|---|
int |
doEndTag()
Render the end of the hyperlink. |
int |
doStartTag()
Render the beginning of the hyperlink. |
java.lang.String |
getName()
Return the attribute name. |
java.lang.String |
getPage()
Return the hyperlink URI. |
void |
release()
Release any acquired resources. |
void |
setName(java.lang.String name)
Set the attribute name. |
void |
setPage(java.lang.String page)
Set the hyperlink URI. |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
doAfterBody, 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 |
Field Detail |
---|
protected java.lang.String page
protected static MessageResources messages
Constructor Detail |
---|
public LinkUserTag()
Method Detail |
---|
public java.lang.String getPage()
public void setPage(java.lang.String page)
page
- Set the hyperlink URIpublic java.lang.String getName()
public void setName(java.lang.String name)
name
- The new attribute namepublic int doStartTag() throws javax.servlet.jsp.JspException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.JspException
- if a JSP exception has occurredpublic int doEndTag() throws javax.servlet.jsp.JspException
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.JspException
- if a JSP exception has occurredpublic void release()
release
in interface javax.servlet.jsp.tagext.Tag
release
in class javax.servlet.jsp.tagext.TagSupport
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |