Good day all, happy Friday!

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

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

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

***** login_body.jsp

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

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

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

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

best regards,

Brian

--
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