Bean Tags
The tags that are part of the Bean tag library are used for accessing JavaBeans and their associated properties as well as for defining new beans that are accessible to the remainder of the page via scripting variables and page-scope attributes. Convenient mechanisms to create new beans based on the values of request cookies, headers, and parameters are also provided. Table 8-9 lists the tags within the Bean tag library.
Table 8-9. Custom tags within the Bean tag library
|
Tag name |
Description |
|---|---|
|
|
Define a scripting variable based on the value(s) of the specified request cookie. |
|
|
Define a scripting variable based on the value(s) of the specified bean property. |
|
|
Define a scripting variable based on the value(s) of the specified request header. |
|
|
Load the response from a dynamic application request and make it available as a bean. |
|
|
Render an internationalized message string to the response. |
|
|
Expose a specified item from the page context as a bean. |
|
|
Define a scripting variable based on the value(s) of the specified request parameter. |
|
|
Load a web application resource and make it available as a bean. |
|
|
Define a bean containing the number of elements in a
|
|
|
Expose a named Struts internal configuration object as a bean. |
|
|
Render the value of the specified bean property. |
Warning
Many of the tags in this tag library throw a
JspException at runtime when ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access