You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by ajTreece <aj...@sun.com> on 2002/12/11 18:37:53 UTC
tiles:insert page=?
Folks...
I tried to search the archives, but for some reason any text search
returns no data... Could just be me!
I have a tile def and in it I have the following code:
<tiles:insert page="some-jsp"/>
The challenge is the "some-jsp" page to be inserted could be one of
many. Is it possible to set the page name in a variable (request,
session, etc.) then let the tiles:insert retrieve it form that variable?
I tried doing a request.setAttribute("link",xxx) in the action servlet
and then doing a <tiles:insert page="<%=request.getAttribute('link')>"/>
but that doesn't seem to work.
Are there any examples out there that do something g along these lines?
Later, ajTreece
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: tiles:insert page=?
Posted by ajTreece <aj...@sun.com>.
Please disregard... I figured it out.
Thanks...
ajTreece wrote:
> Folks...
>
> I tried to search the archives, but for some reason any text search
> returns no data... Could just be me!
>
> I have a tile def and in it I have the following code:
>
> <tiles:insert page="some-jsp"/>
>
> The challenge is the "some-jsp" page to be inserted could be one of
> many. Is it possible to set the page name in a variable (request,
> session, etc.) then let the tiles:insert retrieve it form that variable?
>
> I tried doing a request.setAttribute("link",xxx) in the action servlet
> and then doing a <tiles:insert page="<%=request.getAttribute('link')>"/>
> but that doesn't seem to work.
>
> Are there any examples out there that do something g along these lines?
>
> Later, ajTreece
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>