Hi Antonio,

Nice work! solves my direct problem.
I did try this already but did not put the direct path of the page in question 
in the definition rather left it as a attribute within the intermediate 
definition!

thanks

Andrew


-----Oorspronkelijk bericht-----
Van: Antonio Petrelli [mailto:[EMAIL PROTECTED]
Verzonden: woensdag 11 oktober 2006 16:36
Aan: Struts Users Mailing List
Onderwerp: Re: Tiles: attribute values within nested JSP's!


Andrew Martin ha scritto:
>   <definition extends="sub2.definition" name="subpage3.overview">
>       <put name="title" value="Page Title 3"/>
>       <put name="body" value="/WEB-INF/jsp/page3.jsp"/>
>       <put name="content" value="/WEB-INF/jsp/subcontent3.jsp"/>
>   </definition>  
>   

Uh wait a minute! If I understood you well you want to put 
"subcontent3.jsp" as a value of an attribute inside page3.jsp, right?
In this case you have to create an intermediate definition:

<definition name="intermediate" path="/WEB-INF/jsp/page3.jsp">

        <put name="content" value="/WEB-INF/jsp/subcontent3.jsp"/>

</definition>

Then put this definition in the body:
<definition extends="sub2.definition" name="subpage3.overview">
   <put name="title" value="Page Title 3"/>
   <put name="body" value="intermediate" type="definition"/>
</definition>

HTH
Antonio

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to