Hi all,
So, I have been researching struts-tiles for an existing java/jsp web application I am currently working on. I have found several sources on how to install/enable struts-tiles and they are all a little different. Here's what I have done so far:
In struts-config.xml I added these line:
<action path="/myTilesAction" foward="my.tiles.action" />
and
<plug-in className="org.apache.struts.tiles.TilesPlugin">
<set-property property="definitions-config" value="/WEB-INF/tiles-def.xml" />
</plug-in>
In web.xml I added these lines:
<init-param>
<param-name>chainConfig</param-name>
<param-value>org/apache/struts/tiles/chain-config.xml</param-value>
</init-param>
and
In tiles-def.xml I have these lines:
<definition name="my.tiles.action" path="/jsp/myTilesPage.jsp">
<put name="Header" value="/jsp/myTileHeader.jsp">
<put name="Footer" value="/jsp/myTile/Footer.jsp">
</definition>
Apparently in the version I downloaded from apache.org the .zip file has a struts-tiles-1.3.10.jar file which I placed in the /WEB-INF/lib folder of our application. Hopefully I am so far so good. What I am having trouble with is how to reference the struts-tiles tab library on my
JSP pages. I've seen two ways to do this:
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %> OR
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
My dilema is I am not sure how the server on which our application runs would react to a uri reference to an outside server and there is no file under /WEB-INF called struts-tiles.tld. In the /WEB-INF folder we do have .tld files for
struts - bean,html,logic,nested. Where do I find the file struts-tiles.tld. As mentioned the .zip file only had a struts-tiles-1.3.10.jar file but didn't contain a struts-tiles.tld.
Any help to resolve this would be greatly appreciated.