Struts Kick Start

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.

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.

Категории