Hi,



James Young wrote:


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?

All paths interpreted by the Tiles framework are servlet-context relative.
A module relative mechanism will be added later.



2. Is the same rule applied to <definition path=".."> and <put value=".."> in a Tiles XML definition file?

Yes. Paths still servlet-context relative when defined in a config file.


3. What about <definition controllerUrl="..">? Is the action path servlet context relative or module relative?

Servlet-context relative. You need to prefix a struts action with the appropriate module name.


4. Is "../myMain.jsp" above valid?


It is valid, but generally not useful.
The problem is that you can't says from where a Tile is inserted, so it is hard to say to what "../" refers.



5. Can <tiles:put page=".."> and <put page=".."> refer to an action path instead of JSP?

<tiles:put page=".."> doesn't exist.
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]



Reply via email to