aspose file tools*
The moose likes Struts and the fly likes Loading tiles definitions on startup Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Loading tiles definitions on startup" Watch "Loading tiles definitions on startup" New topic
Author

Loading tiles definitions on startup

Kerry Wilson
Ranch Hand

Joined: Oct 29, 2003
Posts: 254
I cannot seem to figure out how to load the tiles definitions on startup.
I am using tiles w/ Struts and have configured the plugin as such:

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

And everything works fine ( even all Struts applications ) except every time I restart the webapp I also have to reload the tiles by going to URL:

/context/admin/tiles/reload.do

I have read of a mythical Tiles Servlet that you put in the deployment descriptor but it is not in my struts.jar and I cannot seem to find it anywhere. Someone please help I have banged my head for about a month on this.

Thanks in advance,

Kerry


http://www.goodercode.com
SCJP 1.4
Pavan Tummala
Ranch Hand

Joined: Dec 25, 2004
Posts: 74
Kerry,

My web.xml contains the following lines, not sure whether this loads the tiles definitions on startup.


<taglib>
<taglib-uri>/WEB-INF/struts-tiles.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>
</taglib>


Pavan.


If Java had true garbage collection, most programs would delete themselves upon execution -- Robert Sewell
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

Originally posted by Pavan Tummala:
Kerry,

My web.xml contains the following lines, not sure whether this loads the tiles definitions on startup.


<taglib>
<taglib-uri>/WEB-INF/struts-tiles.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>
</taglib>


Pavan.


I don't know the answer to Kerry's question at this time, but all that does is declare the tiles tag library. It has nothing to do with the tiles engine itself.


GenRocket - Experts at Building Test Data
 
wood burning stoves
 
subject: Loading tiles definitions on startup