By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,871 Members | 2,337 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,871 IT Pros & Developers. It's quick & easy.

Struts: Embedded Tiles

P: n/a
I am new to Struts and Tiles. Looking at the 3 sample files below
(tiles-def.xml, basicLayout.jsp, header.jsp) is it possible to have
tiles inside of the header.jsp? If so, then how do I update my
tiles-def.xml to send "hdrTitle"
and "hdrContent" into the header.jsp?

tiles-def.xml
=============
<definition name=".basic.layout" path="/basicLayout.jsp >
<put name="header" value="/header.jsp"/>
<put name="content" value="/content.jsp"/>
</definition>
basicLayout.jsp
====================
<html>
<header><title>Basic JSP</title>
<body>
<tiles:get name="header"/>
<tiles:get name="content"/><br/>
</body>
</html>

header.jsp
====================
<body>
<tiles:get name="hdrTitle"/><br/>
<tiles:get name="hdrContent"/>
</body>
Jul 17 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.