bean:resource

 < Day Day Up > 



<bean:resource />

The <bean:resource /> tag is used to retrieve the value of Web application resource identified by the name attribute; the tag makes the resource available as either a java.io.InputStream or a java.lang.String object, based on the value of the input attribute. The <bean:resource /> tag has no body and supports three attributes, described in Table 20.8.

Table 20.8: <bean:resource /> Tag Attributes

Attribute

Description

id

Identifies the name of the page scoped scripting variable that will contain the retrieved value of the named Web application resource. (Required)

name

Identifies the application-relative name of the Web application resource being retrieved. The resource name must begin with a / character. (Required)

input

If not null, causes the retrieved resource to be returned as an InputStream as opposed to a String. (Optional)



 < 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