html:rewrite

 < Day Day Up > 



<html:rewrite />

The <html:rewrite /> tag is used to create a request URI based on the identical policies used with the <html:link /> tag but without the <a> element. The <html:rewrite /> tag has no body and supports 12 attributes, described in Table 16.22.

Table 16.22: <html:rewrite> Tag Attributes

Attribute

Description

anchor

Used to append an HTML anchor to the end of a generated hyperlink. (optional)

forward

Identifies the name of the global forward element that will receive control of the forwarded request. (optional)

href

Specifies the URL of the resource to forward the current request to. (optional)

name

Identifies a scripting variable referencing a java.util.Map object, whose collection of key/value pairs is used as the HTTP request parameter augmenting the redirected request. (optional)

page

Specifies an application-relative path of the image source used by this input tag. (optional)

paramId

Specifies a request parameter that is added to the generated src URL when the hosting JSP is requested. (optional)

paramName

Identifies the name of a scripting variable of type java.lang.String that references the value to be used for the request parameter identified by the paramId attribute. (optional)

paramProperty

Used to identify a data member of the bean named by the paramName attribute that is dynamically added to this src URL. (optional)

paramScope

Defines the scope of the bean specified by the paramName attribute. If the paramScope attribute is not specified, then the tag searches for the bean in the scopes, in the order of page, request, session, and application. (optional)

property

Used to identify a data member of the bean named by the name attribute that contains the java.util.Map object of parameters. (optional)

scope

Defines the scope of the bean specified by the name attribute. If the scope attribute is not specified, then the tag searches for the bean in the scopes, in the order of page, request, session, and application. (optional)

transaction

If set to true, indicates that the current transaction control token should be included in the generated URL. The default value is false. (optional)

start sidebar

The <html:rewrite /> tag is especially useful when used to generate a String constant that is expected to be used by a JavaScript function.

end sidebar



 < Day Day Up > 



Professional Jakarta Struts
Professional Jakarta Struts (Programmer to Programmer)
ISBN: 0764544373
EAN: 2147483647
Year: 2003
Pages: 183

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net