Hello Brian,

you should use
<tiles:put name="body" type="string">
instead of
<tiles:put name="body">

Friday, November 8, 2002, 4:38:55 PM, you wrote:

BT> Good day all, happy Friday!

BT> I'm building another application using tiles (hopefully this one will ship
BT> sooner than the others :-) and coming across the geometric explosion of tiles
BT> and body files, wondering if there is a solution that others are using that I
BT> might be able to take advantage of. 

BT> The basic problem is that of having one file for the "tiles:insert" statement
BT> and the tiles body file that it references.  In the basic case, my setup
BT> looks like:

BT> ***** login.jsp
BT> <%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles-1.1";
prefix="tiles" %>>
BT> <tiles:insert page="/templates/main_layout.jsp" flush="true">
BT>   <tiles:put name="title"  value="GSUMC - Login" />
BT>   <tiles:put name="header" value="/templates/header.jsp" />
BT>   <tiles:put name="menu"   value="/templates/menu.jsp" />
BT>   <tiles:put name="body" value="/login_body.jsp"/>
BT> </tiles:insert>

BT> ***** login_body.jsp

BT> <%@ page language="java" %>
BT> <snip.../>

BT> What I would like to do is merge these in the form of:

BT> <%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles-1.1";
prefix="tiles" %>>
BT> <%@ page language="java" %>
BT> <tiles:insert page="/templates/main_layout.jsp" flush="true">
BT>   <tiles:put name="title"  value="GSUMC - Login" />
BT>   <tiles:put name="header" value="/templates/header.jsp" />
BT>   <tiles:put name="menu"   value="/templates/menu.jsp" />
BT>   <tiles:put name="body">
BT>       <snip.../
BT>   </tiles:put>
BT> </tiles:insert>

BT> Makes sense, should work according to the javadoc and the tag code, but I
BT> can't get my head around the reason that it doesn't.  The point where the
BT> content should be inserted into the template is untouched.  Any ideas?

BT> best regards,

BT> Brian

BT> --
BT> To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
BT> For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>



-- 
Best regards,
Dirk


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>

Reply via email to