If <html:mytag> is really your own tag, then you could modify it to
alternatively take its value from the body, so you could use it like this:

    <html:mytag>
        <tiles:getAsString name="title"/>
    </html:mytag>

If you still need to be able to use the 'value' attribute in other
situations, then you could have the tag look for the 'value' attribute, and
only use the body if the attribute is not present.

--
Martin Cooper


> -----Original Message-----
> From: Arik Levin ( Tikal ) [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 11, 2002 10:33 AM
> To: Struts Users Mailing List
> Subject: tiles as attribute's value - is it possible ?
> 
> 
>  
>             Hi all.
>  
>                         I have some tag which I want it to be 
> like this:
>  
>                                     <html:mytag 
> value="<tiles:getAsString
> name="title" />" />
>  
>  
>                         As I saw after some searching I saw 
> that some of you
> out there did it like this:
>  
>                                <tiles:useAttribute name="title"
> classname="java.lang.String" ignore="true"/>
>                                <html:mytag value="<%=title%>"/>
>  
>                         Did somebody has manage to come up 
> with a cleaner
> idea?
> 


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

Reply via email to