You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Janarthan Sathiamurthy <ja...@mphasis.com> on 2004/06/09 11:32:29 UTC

Tiles - Moving from jsps to tiles definitions

Hi,

I am using tiles in Struts1.1.
Earlier i used to write all the definitions in a jsp file like -

String contentURL = ...... // Is calculated using some logic in this page itself
<tiles:insert page="/templates/my_template.jsp">
	<tiles:put name="title">My Page</tiles:put>
	<tiles:put name="header" content="/includes/header.jsp"/>
	<tiles:put name="imageName" content='<%=request.getContextPath() +"/images/hdrcust_cust_care.gif"%>' direct="true"/>
	<tiles:put name="side_menu" content="/includes/support_side_menu.jsp"/>
	<tiles:put name="contents" content="<%= contentURL %>"/>
	<tiles:put name="footer" content="/includes/footer.jsp"/>
</tiles:insert>

Now i am planning to move to definitions.
How do i handle cases like the dynamic calculated URL ?
Any Suggestions ?


Thanks & Regards,

Janarthan S.
___________________
MphasiS India Pvt. Ltd.
Architecting Value
SEI-CMM Level  5   ISO 9001
2nd Floor, The Leela Business Park,
Andheri Kurla Road, Andheri (E),
Mumbai 400 059,
Maharashtra, INDIA.
Tel: +91-22- 56777777
Fax: +91-22- 56777700 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org