<% String contentUrl = request.getParameter("contentUrl"); if (contentUrl == null ) contentUrl = "/defaultContentUrl.jsp" %>
<tiles:insert definition="erp.mainLayout" flush="true"> <put name="body" value="<%=contentUrl%>" /> </tiles:insert>
I hope there's a better way to do this (maybe through external tile xml configuration files ) but I've never tried.
Bj
PC Leung a écrit :
I am very new Tiles. I just want the content layout to change and keep header, footer and left menu unchanged.
Is it right to change the value programmatically and how? or do it in another way?
<tiles:insert definition="erp.mainLayout" flush="true"> <put name="body" value="/xxx.jsp" /> </tiles:insert>
Thank you very much.
--------------------------------------------------------------------- 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]