Stripes Tag Library
Tag link


Tag that generates HTML links, used for linking to pages and ActionBean events within a Stripes application. Works in concert with zero or more nested param tags in order to allow addition of arbitrary parameters to any URL. The body of the tag, minus any param tags, is trimmed for whitespace at either end, and is then used as the contents of the link body.

There are two attributes which are not a mirrors of attributes on the HTML anchor tag. The first is the 'event' attribute. This allows specification of a specific event to trigger when linking to an ActionBean URL. The second is 'beanclass' which allows the specification of the class name or Class instance for an ActionBean as an alternative to specifying the 'href' attribute.



Tag Information
Tag Classnet.sourceforge.stripes.tag.LinkTag
TagExtraInfo ClassNone
Body ContentJSP
Display Namelink

Attributes
NameRequiredRequest-timeTypeDescription
eventfalsetruejava.lang.String The (optional) event that should be fired if the link is to an ActionBean. If not supplied then the tag will not render an explicit event (but one may by built in to the URL/href supplied).
addSourcePagefalsetruejava.lang.String Indicates if the _sourcePage parameter should be appended to the URL. Default value is false.
prependContextfalsetruejava.lang.Boolean Indicates if the application context path should be included at the beginning of the generated URL.
beanclassfalsetruejava.lang.Object The fully qualified name of an ActionBean class, or alternatively a Class instance for an ActionBean class. An alternative to the 'href' attribute, the 'beanclass' attribute will generate an href appropriate for the ActionBean identified. Note that if an ActionBean that does not yet exist is identified an exception will be thrown!
anchorfalsetruejava.lang.String The (optional) anchor that is appended at the end of the generated URL. If the URL specified by the value attribute already contains the anchor then the anchor specified by this attribute takes precedence.
charsetfalsetruejava.lang.StringThe character set used to encode the referenced page. (HTML Pass-through)
coordsfalsetruejava.lang.StringUsed to define a region for clicking in an image map. (HTML Pass-through)
hreffalsetruejava.lang.String The target URL. If the URL starts with a slash and does not contain the current web application context path, then the context path will be prepended to the URL. (HTML Pass-through)
hreflangfalsetruejava.lang.StringThe language of the target page. (HTML Pass-through)
namefalsetruejava.lang.StringThe name of an anchor. (HTML Pass-through)
relfalsetruejava.lang.String Specified the relationship between the current page and the target URL. (HTML Pass-through)
revfalsetruejava.lang.StringLike rel, but in reverse.
shapefalsetruejava.lang.StringUsed to define a shape within an image map.
targetfalsetruejava.lang.StringThe frame or window in which the link will open.
typefalsetruejava.lang.StringThe MIME type of the target URL.
accesskeyfalsetruejava.lang.StringKeyboard shortcut to access the element. (HTML Pass-through)
classfalsetruejava.lang.StringThe CSS class to be applied to the element. (HTML Pass-through)
dirfalsetruejava.lang.StringText direction. (HTML Pass-through)
idfalsetruejava.lang.StringA unique identifier for the HTML tag on the page. (HTML Pass-through)
langfalsetruejava.lang.StringThe language code of the element. (HTML Pass-through)
onblurfalsetruejava.lang.StringScripting code run when the element loses focus. (HTML Pass-through)
onchangefalsetruejava.lang.StringScripting code run when the element changes. (HTML Pass-through)
onclickfalsetruejava.lang.StringScripting code run on each mouse click. (HTML Pass-through)
ondblclickfalsetruejava.lang.StringScripting code run on a double-click of the mouse. (HTML Pass-through)
onfocusfalsetruejava.lang.StringScripting code run when the element acquires focus. (HTML Pass-through)
onkeydownfalsetruejava.lang.StringScripting code run when a key is depressed. (HTML Pass-through)
onkeypressfalsetruejava.lang.StringScripting code run when a key is pressed and released. (HTML Pass-through)
onkeyupfalsetruejava.lang.StringScripting code run when a key is released. (HTML Pass-through)
onmousedownfalsetruejava.lang.StringScripting code run when a mouse button is depressed. (HTML Pass-through)
onmousemovefalsetruejava.lang.StringScripting code run when the mouse pointer is moved. (HTML Pass-through)
onmouseoutfalsetruejava.lang.StringScripting code run when the mouse pointer moves out of the element. (HTML Pass-through)
onmouseoverfalsetruejava.lang.StringScripting code run when the mouse pointer moves over the element. (HTML Pass-through)
onmouseupfalsetruejava.lang.StringScripting code run when a mouse button is released. (HTML Pass-through)
onselectfalsetruejava.lang.StringScripting code run when an element is selected. (HTML Pass-through)
stylefalsetruejava.lang.StringInline CSS style fragment that applies to the element (HTML Pass-through)
tabindexfalsetruejava.lang.StringThe tab order of the element. (HTML Pass-through)
titlefalsetruejava.lang.StringTool-tip text for the element. (HTML Pass-through)

Variables
No Variables Defined.


Output Generated by Tag Library Documentation Generator. Java, JSP, and JavaServer Pages are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 2002-4 Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054, U.S.A. All Rights Reserved.