Another question...
Here is one definition in my xml file:
<definition name="AddUser" extends="baseDef">
<put name="body" value="/screens/user/add.jsp"/>
</definition>
By using this syntax <tiles:useAttribute name="body" />, I can retrieve the
value
/screens/user/add.jsp
Is ther a way I could retrieve the value of the definition name "AddUser"
Johanne
-----Original Message-----
From: Cedric Dumoulin [ mailto:[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> ]
Sent: May 15, 2002 9:32 AM
To: Struts Users Mailing List
Subject: Re: Struts & Tiles
Can't you specify a request or page attribute name for your
<cipo:treasury_board_header ...> tag (something like beanName="...") ? If
yes
use it instead.
If no, check if your tag accept an rtexpr as value and do the following :
<tiles:useAttribute name="body" />
<cipo:treasury_board_header name="<%=body%>"/>
If your tag doesn't accept rtexpr, try to change that in the corresponding
tld, and check tag behavior.
Cedric
[EMAIL PROTECTED] wrote:
> Cedric,
>
> This does not seem to be working for me. Maybe my message is not clear.
>
> I want to replace the variable in the statement by the value returned by
the
> tiles tag <tiles:getAsString name='body'/>
>
> <cipo:treasury_board_header name="variable"/>
>
> Thanks
>
> Johanne
> -----Original Message-----
> From: Cedric Dumoulin [ < mailto:[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> >
> mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> ]
> Sent: May 15, 2002 8:30 AM
> To: Struts Users Mailing List
> Subject: Re: Struts & Tiles
>
> Import the tiles attribute into the request or page scope just before
> calling
> your tag. Then you will be able to use tiles' attribute value just like
any
> attribute from request or page scope :
> <tiles:importAttribute name="body" scope="page" />
>
> You need to do that because tiles attribute are stored in the tiles
> context.
>
> Hope this help,
>
> Cedric
>
> [EMAIL PROTECTED] wrote:
>
> > I am trying to include a tiles tag within a struts tag but I have had no
> > success
> >
> > This is what I would like as the final result:
> > <cipo:treasury_board_header name='layout.jsp'/>
> >
> > In the above code line, layout.jsp is a variable in the tiles definition
> > file. I have tried the following with no success:
> > <cipo:treasury_board_header name="<tiles:getAsString name='body'/>"/>
> >
> > <cipo:treasury_board_header><tiles:getAsString
> > name='body'/></cipo:treasury_board_header>
> >
> > How can I get this variable sent with my struts tag?
> >
> > Johanne Demers
> >
> > --
> > To unsubscribe, e-mail: <
> < mailto:[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> >
> mailto:[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> >
> > For additional commands, e-mail: <
> < mailto:[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> >
> mailto:[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> >
>
> --
> To unsubscribe, e-mail: <
> < mailto:[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> >
> mailto:[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> >
> For additional commands, e-mail: <
> < mailto:[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> >
> mailto:[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> >
--
To unsubscribe, e-mail: <
mailto:[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> >
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> >