Subject: tilesPlugin, tiles & struts subapps
From: Torgeir Veimo <[EMAIL PROTECTED]>
 ===
I have a subapp in which I would like to use tiles. I allready use tiles 
in the main struts application. I specify requestprocessor and 
tilesPlugin like this; (With tiles 1.1dev)

     <controller 
processorClass="org.apache.struts.tiles.TilesRequestProcessor" />

     <message-resources parameter="PublishingApplicationResources" 
null="false" />

     <plug-in className="org.apache.struts.tiles.TilesPlugin" >
         <set-property property="definitionsConfig" 
value="publishing-tileDefinitions.xml"/>
     </plug-in>

However, the requestprocessor for this subapp seems to look for 
definitions in the main applications tileDefinitions.xml file. Is there 
something missing in the implementation that currently prevents such a 
scenario from working?

My main application also specify the definition using the tilesPlugin, 
not in web.xml.

Also, should I expect definitions in the subapp being available to the 
main app by prefixing the  subapp name to the definition name in a jsp, 
like this;

main.jsp;

     <tiles:insert definition="publishing/article.tabs.body" /> (or 
"/publishing...")?

The documentation is a bit scarse on using tiles in subapps with 
multiple config...

-- 
-Torgeir


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to