You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by be...@650dialup.com on 2003/10/30 21:18:32 UTC
tiles relative path in put tag
I have a definition like this:
<definition name="tiles.layout.main" path="/common/layout/main.jsp">
<put name="header" value="/common/jsp/header.jsp" />
<put name="menu" value="/common/jsp/menu.jsp" />
<put name="sidebar" value="OVERLOAD" />
<put name="content" value="OVERLOAD" />
<put name="footer" value="/common/jsp/footer.jsp" />
</definition>
And I'd like to overload it like this: (index.jsp)
<tiles:insert definition="tiles.layout.main" flush="true">
<tiles:put name="sidebar" value="sidebar.jsp" />
<tiles:put name="content" value="content.jsp" />
</tiles:insert>
Where index.jsp, sidebar.jsp, and content.jsp are all in the same directory.
When I access this page, nothing gets displayed and no errors are logged. However, if I use
the full path, then everything works fine.
Is there some way to use relative paths in the put tag?
Thanks,
Eric
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org