struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Taylor" <rtay...@mulework.com>
Subject RE: [Tiles] Populating Tiles definition attribute at runtime
Date Tue, 30 Dec 2003 14:16:24 GMT
Thanks to all who replied. I'll look into each suggested solution more
closely.

robert

> -----Original Message-----
> From: Robert Taylor [mailto:rtaylor@mulework.com]
> Sent: Monday, December 29, 2003 2:15 PM
> To: Struts Users Mailing List
> Subject: RE: [Tiles] Populating Tiles definition attribute at runtime
>
>
> Thanks for the reply Pedro, but I was looking for a cleaner solution.
>
> robert
>
> > -----Original Message-----
> > From: Pedro Salgado [mailto:salgado.pc@04web.com]
> > Sent: Monday, December 29, 2003 12:51 PM
> > To: Struts Users Mailing List
> > Subject: Re: [Tiles] Populating Tiles definition attribute at runtime
> >
> >
> >
> >   I donĀ¹t know if it is possible to change a tiles definition at
> > runtime but
> > a solution to your problem could be solved by specifying a
> definition that
> > uses a jsp file that does a conditional include according to a given
> > parameter?
> >
> > <definition name="choose.def" extends="base.def">
> >   <put name="header" value="/header.jsp"/>
> >    <put name="body" value="/choose.jsp"/>  <-----
> >    <put name="footer" value="/footer.jsp"/>
> > </definition>
> >
> > ----> choose.jsp
> >
> > <c:import url='/WEB-INF/com/website/tiles/choose/${request.choose}'/>
> >
> >
> > Pedro Salgado
> >
> >
> > On 29/12/2003 17:46, "Robert Taylor" <rtaylor@mulework.com> wrote:
> >
> > > Greetings, I have a tiles definition in my tiles-defs.xml
> > similar to below:
> > >
> > > <definition name="search" extends="layout">
> > >   <put name="heading" value="{0}Search" type="string" />
> > >   <put name="content" value="/search.jsp" type="page" />
> > > </definition>
> > >
> > > which I would like to be able to modify the "heading" value such that
> > > at runtime I could substitute a value for {0}.
> > >
> > > For example, it would be ideal to use a JSTL type of syntax such as:
> > >
> > > <definition name="search" extends="layout">
> > >   <put name="heading" value="${param.myValue}Search" type="string" />
> > >   <put name="content" value="/search.jsp" type="page" />
> > > </definition>
> > >
> > > but this does not work.
> > >
> > >
> > >
> > > robert
> > >
> > > ---------------------------------------------------------------------
> > > 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
> >
>
>
> ---------------------------------------------------------------------
> 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