I think the variable (msgs) needs to be passed through by the layout
page.  I think this allows the other JSP inserted the same layout page
to access the variable.

I could easily be wrong about that but hopefully someone with more
Tiles knowledge than me can prove me right / wrong....

Tim Christopher

On Thu, 3 Mar 2005 16:52:24 +0000, Ben Taylor <[EMAIL PROTECTED]> wrote:
> I know there have been a few Tiles related question recently, but
> having read them I still can't figure out how to solve my problem.
> 
> At current I'm using:
> <tiles:insert component="/WEB-INF/pgs/msgs.jsp"/>
> ... within a few of my JSPs.  The position of this component within
> the document changes for each JSP file so I can not create a new
> layout file for it.
> 
> This is my current tiles-def file:
> <definition name=".pub.welcome" path="/WEB-INF/layout.jsp">
>   <put name="header" value="/WEB-INF/pgs/header.jsp"/>
>   <put name="content" value="/WEB-INF/pgs/welcome.jsp"/>
> </definition>
> 
> I'd like to be able to add an extra line to the above base definition
> (.pub.welcome) along the lines of:
> <put name="msgs" value="/WEB-INF/pgs/msgs.jsp"/>
> ... and then be able to insert that page within a number of my
> (content) JSP files.
> 
> I've tried using <tiles:insert attribute="msgs"/> but it doesn't work. :-(
> 
> Can anyone suggest a method that might work?
> 
> Thank you.
> 
> ---------------------------------------------------------------------
> 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