Only 48 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Loading tiles definitions on startup  RSS feed

 
Kerry Wilson
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Pavan Tummala
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!