|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.servlet.jsp.tagext.TagSupport | +--javax.servlet.jsp.tagext.BodyTagSupport | +--org.apache.struts.taglib.html.BaseHandlerTag | +--org.apache.struts.taglib.html.LinkTag
Generate a URL-encoded hyperlink to the specified URI.
Field Summary | |
protected java.lang.String |
action
The module-relative action (beginning with a slash) which will be called by this link |
protected java.lang.String |
anchor
The anchor to be added to the end of the generated hyperlink. |
protected java.lang.String |
forward
The logical forward name from which to retrieve the hyperlink URI. |
protected java.lang.String |
href
The hyperlink URI. |
protected java.lang.String |
indexId
Name of parameter to generate to hold index number |
protected java.lang.String |
linkName
The link name for named links. |
protected static MessageResources |
messages
The message resources for this package. |
protected java.lang.String |
module
The module prefix (beginning with a slash) which will be used to find the action for this link. |
protected java.lang.String |
name
The JSP bean name for query parameters. |
protected java.lang.String |
page
The module-relative page URL (beginning with a slash) to which this hyperlink will be rendered. |
protected java.lang.String |
paramId
The single-parameter request parameter name to generate. |
protected java.lang.String |
paramName
The single-parameter JSP bean name. |
protected java.lang.String |
paramProperty
The single-parameter JSP bean property. |
protected java.lang.String |
paramScope
The single-parameter JSP bean scope. |
protected java.lang.String |
property
The JSP bean property name for query parameters. |
protected java.lang.String |
scope
The scope of the bean specified by the name property, if any. |
protected java.lang.String |
target
The window target. |
protected java.lang.String |
text
The body content of this tag (if any). |
protected boolean |
transaction
Include transaction token (if any) in the hyperlink? |
protected boolean |
useLocalEncoding
|
Fields inherited from class org.apache.struts.taglib.html.BaseHandlerTag |
accesskey, alt, altKey, bundle, defaultLocale, disabled, doDisabled, doReadonly, errorKey, errorStyle, errorStyleClass, errorStyleId, indexed, locale, log, loopTagStatusClass, loopTagStatusGetIndex, loopTagSupportClass, loopTagSupportGetStatus, onblur, onchange, onclick, ondblclick, onfocus, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onselect, readonly, style, styleClass, styleId, tabindex, title, titleKey, triedJstlInit, triedJstlSuccess |
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
bodyContent |
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, pageContext, parent, values |
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag |
EVAL_BODY_TAG |
Fields inherited from interface javax.servlet.jsp.tagext.Tag |
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Constructor Summary | |
LinkTag()
|
Method Summary | |
protected java.lang.String |
calculateURL()
Return the complete URL to which this hyperlink will direct the user. |
int |
doAfterBody()
Save the associated label from the body content. |
int |
doEndTag()
Render the end of the hyperlink. |
int |
doStartTag()
Render the beginning of the hyperlink. |
java.lang.String |
getAction()
|
java.lang.String |
getAnchor()
|
java.lang.String |
getForward()
|
java.lang.String |
getHref()
|
java.lang.String |
getIndexId()
|
java.lang.String |
getLinkName()
|
java.lang.String |
getModule()
|
java.lang.String |
getName()
|
java.lang.String |
getPage()
|
java.lang.String |
getParamId()
|
java.lang.String |
getParamName()
|
java.lang.String |
getParamProperty()
|
java.lang.String |
getParamScope()
|
java.lang.String |
getProperty()
|
java.lang.String |
getScope()
|
java.lang.String |
getTarget()
|
boolean |
getTransaction()
|
boolean |
isUseLocalEncoding()
|
void |
release()
Release any acquired resources. |
void |
setAction(java.lang.String action)
|
void |
setAnchor(java.lang.String anchor)
|
void |
setForward(java.lang.String forward)
|
void |
setHref(java.lang.String href)
|
void |
setIndexId(java.lang.String indexId)
|
void |
setLinkName(java.lang.String linkName)
|
void |
setModule(java.lang.String module)
|
void |
setName(java.lang.String name)
|
void |
setPage(java.lang.String page)
|
void |
setParamId(java.lang.String paramId)
|
void |
setParamName(java.lang.String paramName)
|
void |
setParamProperty(java.lang.String paramProperty)
|
void |
setParamScope(java.lang.String paramScope)
|
void |
setProperty(java.lang.String property)
|
void |
setScope(java.lang.String scope)
|
void |
setTarget(java.lang.String target)
|
void |
setTransaction(boolean transaction)
|
void |
setUseLocalEncoding(boolean b)
|
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
doInitBody, getBodyContent, getPreviousOut, setBodyContent |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue |
Methods inherited from class java.lang.Object |
|
Methods inherited from interface javax.servlet.jsp.tagext.Tag |
getParent, setPageContext, setParent |
Field Detail |
protected java.lang.String text
protected java.lang.String anchor
protected java.lang.String forward
The logical forward name from which to retrieve the hyperlink URI.
Usage note: If a forward config is used in a hyperlink, and a module is specified, the path must lead to another action and not directly to a page. This is in keeping with rule that in a modular application all links must be to an action rather than a page.
protected java.lang.String href
protected java.lang.String linkName
protected static MessageResources messages
protected java.lang.String name
protected java.lang.String page
protected java.lang.String action
protected java.lang.String module
protected java.lang.String paramId
protected java.lang.String paramName
protected java.lang.String paramProperty
protected java.lang.String paramScope
protected java.lang.String property
protected java.lang.String scope
protected java.lang.String target
protected boolean transaction
protected java.lang.String indexId
protected boolean useLocalEncoding
Constructor Detail |
public LinkTag()
Method Detail |
public java.lang.String getAnchor()
public void setAnchor(java.lang.String anchor)
public java.lang.String getForward()
public void setForward(java.lang.String forward)
public java.lang.String getHref()
public void setHref(java.lang.String href)
public java.lang.String getLinkName()
public void setLinkName(java.lang.String linkName)
public java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.String getPage()
public void setPage(java.lang.String page)
public java.lang.String getAction()
public void setAction(java.lang.String action)
public java.lang.String getModule()
public void setModule(java.lang.String module)
public java.lang.String getParamId()
public void setParamId(java.lang.String paramId)
public java.lang.String getParamName()
public void setParamName(java.lang.String paramName)
public java.lang.String getParamProperty()
public void setParamProperty(java.lang.String paramProperty)
public java.lang.String getParamScope()
public void setParamScope(java.lang.String paramScope)
public java.lang.String getProperty()
public void setProperty(java.lang.String property)
public java.lang.String getScope()
public void setScope(java.lang.String scope)
public java.lang.String getTarget()
public void setTarget(java.lang.String target)
public boolean getTransaction()
public void setTransaction(boolean transaction)
public java.lang.String getIndexId()
public void setIndexId(java.lang.String indexId)
public boolean isUseLocalEncoding()
public void setUseLocalEncoding(boolean b)
public int doStartTag() throws javax.servlet.jsp.JspException
Support for indexed property since Struts 1.1
doStartTag
in class javax.servlet.jsp.tagext.BodyTagSupport
javax.servlet.jsp.JspException
- if a JSP exception has occurredpublic int doAfterBody() throws javax.servlet.jsp.JspException
doAfterBody
in class javax.servlet.jsp.tagext.BodyTagSupport
javax.servlet.jsp.JspException
- if a JSP exception has occurredpublic int doEndTag() throws javax.servlet.jsp.JspException
doEndTag
in class javax.servlet.jsp.tagext.BodyTagSupport
javax.servlet.jsp.JspException
- if a JSP exception has occurredpublic void release()
release
in class BaseHandlerTag
protected java.lang.String calculateURL() throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
- if an exception is thrown calculating the value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |