Hi,
James Young wrote:
All paths interpreted by the Tiles framework are servlet-context relative.When using Tiles with multiple modules (with moduleAware="true"), consider the following JSP fragment:
<tiles:insert page="/myTemplate.jsp"> <tile:put name="main" value="/myMain.jsp"/> <tile:put name="menu" value="../myMain.jsp"/> </tiles:insert>
1. Are both "/myTemplate.jsp" and "/myMain.jsp" always servlet-context relative, not module relative?
A module relative mechanism will be added later.
Yes. Paths still servlet-context relative when defined in a config file.
2. Is the same rule applied to <definition path=".."> and <put value=".."> in a Tiles XML definition file?
Servlet-context relative. You need to prefix a struts action with the appropriate module name.
3. What about <definition controllerUrl="..">? Is the action path servlet context relative or module relative?
It is valid, but generally not useful.
4. Is "../myMain.jsp" above valid?
The problem is that you can't says from where a Tile is inserted, so it is hard to say to what "../" refers.
<tiles:put page=".."> doesn't exist.
5. Can <tiles:put page=".."> and <put page=".."> refer to an action path instead of JSP?
You can have <tiles:insert page=".." ...> or <tiles:put value=".." ...>.
In both case you can use an action path (prefixed with the appropriate module name).
Cedric
Thanks
J. Young
__________________________________________________ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

