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

Modifying Your Actions

The final step in converting the application to use Tiles is to change the action tags in the application to use the Tiles layout names instead of JSP filenames. Listing 16.5 shows the new global forward and action sections of struts-config.xml.

Listing 16.5. Modifications to struts-config.xml
 <global-forwards type="org.apache.struts.action.ActionForward"> <forward name="home" path="stocktrack.index" /> <forward name="portfolio" path="stocktrack.portfolio"/> <forward name="newUserName" path="stocktrack.newUserName"/> <forward name="newUserAddress" path="stocktrack.newUserAddress"/> </global-forwards> <action-mappings type="org.apache.struts.action.ActionMapping"> <action path="/index" forward="stocktrack.index" /> <action ...

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