create another definition that use your header.jsp as a layout(template),
and pass in whatever attribute you wish, then use that definition to pass
into your master definition.

> -----Original Message-----
> From: Enrique Rodriguez [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, May 02, 2002 8:07 AM
> To:   Struts Users Mailing List
> Subject:      RE: Tiles template header and title
> 
> This is what i will do:
> 
> When i call to the master definition from an ACtion y set the Title as
> attribute in the request and then int the header.jsp, i write it.
> 
> Very easy.
> 
> HTH.
> 
> Enrique.
> 
> _____________________________
> Enrique Rodriguez Lasterra
> 
> > -----Mensaje original-----
> > De: Filipe Mateus [mailto:[EMAIL PROTECTED]]
> > Enviado el: jueves, 02 de mayo de 2002 16:47
> > Para: [EMAIL PROTECTED]
> > Asunto: Tiles template header and title
> >
> >
> > I have this definition file:
> >
> > <tiles-definitions>
> >
> >     <definition name="master" path="/WEB-INF/pages/my_template.jsp">
> >             <put name="title" value="Can this be in the header?" />
> >             <put name="logo" value="/images/logo_fra.gif" />
> >             <put name="header" value="/WEB-INF/pages/header.jsp" />
> >             <put name="footer" value="/WEB-INF/pages/footer.jsp" />
> >     </definition>
> > ...
> > </tiles-definitions>
> >
> > I would like header.jsp to know the title attribute so it can
> > render it.  I was hoping doing something like this in header.jsp::
> >
> > <table><tr><td><tiles:insert attribute="title"/></td></tr></table>
> >
> > But obviously, the title attribute is not known.
> >
> > How can I pass the title attribute to header.jsp ?
> >
> > Thank you.
> >
> >
> > **********************************************************************
> > Financiere Banque Nationale et NBCN n'assument
> > aucune responsabilite quant a la confidentialite et l'integrite du
> > present courriel en raison des risques d'interception inherents
> > a l'Internet. Pour cette raison, toute opinion exprimee au terme
> > des presentes ne reflete pas necessairement celle de
> > Financiere Banque Nationale et de NBCN.
> > **********************************************************************
> > Due to the security risks involved in sending information over the
> > Internet, National Bank Financial  and NBCN cannot be held responsible
> > for ensuring the confidentiality and integrity of the present
> > e-mail. For this
> > reason, the opinions expressed herein do not necessarily reflect those
> of
> > National Bank Financial and NBCN.
> > **********************************************************************
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> >
> 
> 
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>

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

Reply via email to