Using Struts Bean Tags That Access Java Resources

This section provides information about the following tags:

  • <bean:message>— Displays an internationalized message

  • <bean:resource>— Loads a Web application resource as a bean

  • <bean:struts>— Accesses the internal configuration of Struts

  • <bean:include>— Gets the response from a Web application request

This section uses the Bean Resources page at /StrutsTaglibs/ The rendered page is shown in Figure 13.3.

Figure 13.3. The Bean Resources page.

This page demonstrates a typical use of each of the tags. The source is shown in Listing 13.2.

Listing 13.2. JSP File Demonstrating Use ...

Get Struts Kick Start now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.