it.eng.spago.taglib.html
Class LinkTag

java.lang.Object
  extended by BodyTagSupport
      extended by it.eng.spago.taglib.html.BaseHandlerTag
          extended by it.eng.spago.taglib.html.LinkTag
Direct Known Subclasses:
FrameTag, RewriteTag

public class LinkTag
extends BaseHandlerTag

Generate a URL-encoded hyperlink to the specified URI.

Version:
$Rev: 376841 $ $Date: 2005-04-06 02:37:00 -0400 (Wed, 06 Apr 2005) $

Field Summary
protected  java.lang.String alias
           
protected  java.lang.String aliasRelated
           
protected  java.lang.String anchor
          The anchor to be added to the end of the generated hyperlink.
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 MessageBundleReference messages
          The message resources for this package.
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 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 it.eng.spago.taglib.html.BaseHandlerTag
accesskey, doDisabled, doReadonly, indexed, tabindex
 
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 getAnchor()
           
 java.lang.String getHref()
           
 java.lang.String getIndexId()
           
 java.lang.String getLinkName()
           
 java.lang.String getParamId()
           
 java.lang.String getParamName()
           
 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 setAlias(java.lang.String alias)
           
 void setAliasRelated(java.lang.String aliasRelated)
           
 void setAnchor(java.lang.String anchor)
           
 void setHref(java.lang.String href)
           
 void setIndexId(java.lang.String indexId)
           
 void setLinkName(java.lang.String linkName)
           
 void setParamId(java.lang.String paramId)
           
 void setParamName(java.lang.String paramName)
           
 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 it.eng.spago.taglib.html.BaseHandlerTag
doErrorsExist, getAccesskey, getAlt, getAltKey, getBundle, getDisabled, getElementClose, getErrorStyle, getErrorStyleClass, getErrorStyleId, getIndexed, getIndexValue, getOnblur, getOnchange, getOnclick, getOndblclick, getOnfocus, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnselect, getReadonly, getStyle, getStyleClass, getStyleId, getTabindex, getTitle, getTitleKey, isXhtml, lookupProperty, message, prepareAttribute, prepareEventHandlers, prepareFocusEvents, prepareIndex, prepareKeyEvents, prepareMouseEvents, prepareName, prepareOtherAttributes, prepareStyles, prepareTextEvents, setAccesskey, setAlt, setAltKey, setBundle, setDisabled, setErrorStyle, setErrorStyleClass, setErrorStyleId, setIndexed, setOnblur, setOnchange, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnselect, setReadonly, setStyle, setStyleClass, setStyleId, setTabindex, setTitle, setTitleKey
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

messages

protected static MessageBundleReference messages
The message resources for this package.


alias

protected java.lang.String alias

aliasRelated

protected java.lang.String aliasRelated

text

protected java.lang.String text
The body content of this tag (if any).


anchor

protected java.lang.String anchor
The anchor to be added to the end of the generated hyperlink.


href

protected java.lang.String href
The hyperlink URI.


linkName

protected java.lang.String linkName
The link name for named links.


paramId

protected java.lang.String paramId
The single-parameter request parameter name to generate.


paramName

protected java.lang.String paramName
The single-parameter JSP bean name.


paramScope

protected java.lang.String paramScope
The single-parameter JSP bean scope.


property

protected java.lang.String property
The JSP bean property name for query parameters.


scope

protected java.lang.String scope
The scope of the bean specified by the name property, if any.


target

protected java.lang.String target
The window target.


transaction

protected boolean transaction
Include transaction token (if any) in the hyperlink?


indexId

protected java.lang.String indexId
Name of parameter to generate to hold index number


useLocalEncoding

protected boolean useLocalEncoding
Constructor Detail

LinkTag

public LinkTag()
Method Detail

getAnchor

public java.lang.String getAnchor()

setAnchor

public void setAnchor(java.lang.String anchor)

getHref

public java.lang.String getHref()

setHref

public void setHref(java.lang.String href)

getLinkName

public java.lang.String getLinkName()

setLinkName

public void setLinkName(java.lang.String linkName)

getParamId

public java.lang.String getParamId()

setParamId

public void setParamId(java.lang.String paramId)

getParamName

public java.lang.String getParamName()

setParamName

public void setParamName(java.lang.String paramName)

getParamScope

public java.lang.String getParamScope()

setParamScope

public void setParamScope(java.lang.String paramScope)

getProperty

public java.lang.String getProperty()

setProperty

public void setProperty(java.lang.String property)

getScope

public java.lang.String getScope()

setScope

public void setScope(java.lang.String scope)

getTarget

public java.lang.String getTarget()

setTarget

public void setTarget(java.lang.String target)

getTransaction

public boolean getTransaction()

setTransaction

public void setTransaction(boolean transaction)

getIndexId

public java.lang.String getIndexId()

setIndexId

public void setIndexId(java.lang.String indexId)

isUseLocalEncoding

public boolean isUseLocalEncoding()

setUseLocalEncoding

public void setUseLocalEncoding(boolean b)

setAlias

public void setAlias(java.lang.String alias)

setAliasRelated

public void setAliasRelated(java.lang.String aliasRelated)

doStartTag

public int doStartTag()
               throws JspException
Render the beginning of the hyperlink.

Support for indexed property since Struts 1.1

Throws:
JspException - if a JSP exception has occurred

doAfterBody

public int doAfterBody()
                throws JspException
Save the associated label from the body content.

Throws:
JspException - if a JSP exception has occurred

doEndTag

public int doEndTag()
             throws JspException
Render the end of the hyperlink.

Throws:
JspException - if a JSP exception has occurred

release

public void release()
Release any acquired resources.

Overrides:
release in class BaseHandlerTag

calculateURL

protected java.lang.String calculateURL()
                                 throws JspException
Return the complete URL to which this hyperlink will direct the user. Support for indexed property since Struts 1.1

Throws:
JspException - if an exception is thrown calculating the value