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 Nested Tags

This section provides information about the following tags:

  • <nested:nest>— Define a new level of nesting

  • <nested:root>— Define the root level of a nested hierarchy

  • <nested:writeNesting>— Send the current nesting level to the page

By using the <nested:nest> tag, you define the object relative to which all contained tags do their work.

The best way to demonstrate this is with an example. Examine the JSP shown in Listing 15.1.

Listing 15.1. JSP File Demonstrating Use of Struts Nested Tags (Nested.jsp)
 <%@ page language="java" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> <%@ taglib ...

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