O'Reilly logo

Struts Kick Start by Kevin Bedell, James Turner

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using the Struts Template Tags

This section provides information about the following tags:

  • <template:insert>— Insert a template with passed content

  • <template:get>— Retrieve template content

  • <template:put>— Pass template content

This section uses the testTemplate pages at /Taglib/testTemplate[1-3].do. Figure 15.4 shows the result of requesting testTemplate1.do.

Figure 15.4. Test template page at /Taglib/testTemplate1.do.

The source to this page can be found in Listing 15.6.

Listing 15.6. Calling Out to a Template Page (testTemplate1.jsp)
 <%@ page language="java" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-bean.tld" ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required