Hi all,

I'm looking for a way to insert in a JSP from a web module an other JSP from
an other web module.
For example:
example.jsp :
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<tiles:insert page="/exampleLayout.jsp" flush="true">
  <tiles:put name="header" value="/header.jsp" />
  <tiles:put name="footer" value="/footer.jsp" />
  <tiles:put name="menu"   value="/menu.jsp" />
  <tiles:put name="body"   value="/mainBody.jsp" />
</tiles:insert>

where exampleLayout.jsp, header.jsp and footer.jsp are in the main web
module with context-root=/main
and menu.jsp and mainBody.jsp are in another web module with
context-root=/specific

exampleLayout.jsp:
<tiles:insert attribute="header"/>
<tiles:insert attribute="footer"/>
<tiles:insert attribute="menu"/>
<tiles:insert attribute="body"/>

Of course, I get a ServletException because /menu.jsp and /mainBody.jsp
can't be found in /main context.
The solution would be a way to tell struts that these two pages are in
/specific context.

Can somebody help me?

Philippe.



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

Reply via email to