You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Roland Berger <be...@bluewin.ch> on 2003/03/02 15:46:45 UTC
tiles insert in "sub layout"
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
Re: tiles insert in "sub layout"
Posted by Cedric Dumoulin <ce...@apache.org>.
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