Chapter 15. The Nested and Template Struts Tag Libraries: Handling Subproperties and Inserting Content


IN THIS CHAPTER

  • Using the Struts Nested Tags

  • Using the Struts Template Tags

  • Conclusions

There are two other Struts tag libraries that are used in specific situations you might encounter during code development:

  • The Nested tag library enables you to use many of the common tags from the other tag libraries, but apply them relative to an object.

  • The Template library enables you to create Web pages based on a common template, with content passed in to the template to be inserted.

You can find all the files used here in the Taglib Web application. The main JSP page for this chapter, shown in Figure 15.1, is located at the URL http://myAppServer/Taglib/misc.jsp .

Figure 15.1. The sample application page for Struts nested and template tags.

graphics/15fig01.gif

Note

In all URLs in the chapter, replace myAppServer with the hostname and port that you've configured your JSP server to run on. For Tomcat, this is usually localhost:8080.




Struts Kick Start
Struts Kick Start
ISBN: 0672324725
EAN: 2147483647
Year: 2002
Pages: 177

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