Stripes Tag Library
Tag url


Similar to the link tag except that the behaviour closely approximates the JSTL c:url tag. Generates a URL containing the necessary source-page and event parameters. If a 'var' attribute is specified, the generated URL will be written to that variable, otherwise it will be written into the page. Like c:url the constructed url is not encoded.


Tag Information
Tag Classnet.sourceforge.stripes.tag.UrlTag
TagExtraInfo ClassNone
Body ContentJSP
Display Nameurl

Attributes
NameRequiredRequest-timeTypeDescription
valuefalsetruejava.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.
varfalsetruejava.lang.String The (optional) name of a scoped variable to store the generated URL in. If no name is specified then the URl will be written directly to the page instead. See also the 'scope' attribute to control which scope the variable gets set in.
scopefalsetruejava.lang.String The (optional) name of the JSP scope into which to set the variable specified by the var attribute. Valid values are 'page', 'request', 'session' and 'application'. Defaults to 'page'.
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).
beanclassfalsetruejava.lang.Object The fully qualified name of an ActionBean class, or alternatively a Class instance for an ActionBean class. An alternative to the 'value' 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.
prependContextfalsetruejava.lang.Boolean Indicates if the application context path should be included at the beginning of the generated URL.
addSourcePagefalsetruejava.lang.String Indicates if the _sourcePage parameter should be appended to the URL. Default value is false.

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.