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

Enabling Tiles

Before you can use Tiles, you must make it available. If you merely want to use the Tiles tags in your JSP files, all you have to do is to insert the following line at the top of your JSP file:

<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>

If you want to fully integrate Tiles into Struts, you need to add the following plug-in definition into your strutsconfig.xml file, as well:

 <plug-in className="org.apache.struts.tiles.TilesPlugin" > <set-property property="definitions-config" value="/WEB-INF/stocktrack-tiles.xml" /> <set-property property="definitions-debug" value="2" /> <set-property property="definitions-parser-details" value="2" /> <set-property property="definitions-parser-validate" value="true" /> </plug-in> ...

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