struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cedric Dumoulin <ced...@apache.org>
Subject Re: tiles insert in "sub layout"
Date Sat, 22 Feb 2003 10:54:03 GMT

  Hi,

  Have you tried to set flush="true" in your <insert> tags ?

   Cedric

Roland Berger wrote:

>Hi all
>
><tiles:insert> does not insert the jsp page where it should.
>I have the following setup:
>
>In my master Layout (classicLayout.jsp) I have the tag:
>
>************ Code snippet start of classicLayout.jsp *************
>...
>  <tiles:insert  attribute="body"/>
>...
>************ Code snippet end *************
>
>The attribut "body" references another tiles definition which inserts the
>mitgliedDetail.jsp page. In that JSP page I have another tag: <tiles:insert
>attribute="bodyHead" flush="false"/> which points the
>mitgliedDetailBearbeitenKopf.jsp Page.
>
>************ Code snippet start of tiles-defs.xml **************
>    ....
>    <definition name=".pages.mitglied.detail.bearbeiten"
>extends=".classicLayout">
>        ...
>        <put name="body" value=".pages.mitglied.detail.bearbeiten.kopf"/>
>    </definition>
>
>    <definition name=".pages.mitglied.detail.bearbeiten.kopf"
>path="/WEB-INF/pages/mitgliedDetail.jsp" >
>        <put name="bodyHead"
>value="/WEB-INF/pages/mitgliedDetailBearbeitenKopf.jsp"  />
>    </definition>
>    ...
>************ Code snippet end ***************
>
>Instead of inserting the JSP page, referenced by the name "bodyHead", into
>'detailMitglied.jsp' where the <tiles:insert  attribute="bodyHead"
>flush="false"/> is, the page is inserted at the beginning of the page
>'detailMitglied.jsp'. But the insert Tag is not at the beginning but
>somewhere in the middle.
>
>What is the proper way to insert jsp pages, which are insertet into the
>master layout, and have themselfs insert tags? ( Kind of nested inserts )
>
>Kind regards
>Roland
>
>PS: I work with struts version 1.1 beta 3
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
>  
>


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


Mime
View raw message