struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vinit Sharma" <vini...@gmail.com>
Subject Re: <html:link /> how to use message resource key for href
Date Thu, 06 Apr 2006 04:49:54 GMT
My c:set is as below:

<c:set var="link">
    <bean:message key="${item.link}" />
</c:set>
<html:link href="${link}">
    <bean:message key="${item.value}"/>
</html:link>

and it works fine.

Thanks,


On 4/5/06, Adam Hardy <ahardy.struts@cyberspaceroad.com> wrote:
>
> What does your c:set look like?
>
>
> Vinit Sharma on 04/04/06 08:58, wrote:
> > But I faced a problem with the fmt tag, the variable link contains
> > the key instead of the text value.
> >
> > Any clue??
> >
> > On 4/4/06, Vinit Sharma <vinit4j@gmail.com> wrote:
> >
> >> Thanks,
> >>
> >> I used a <c:set/> in combination with <bean:message/>. But fmt tag
> >> looks neat.
> >>
> >> :)
> >>
> >>
> >> On 4/4/06, Nicolas De Loof < nicolas.deloof@capgemini.com> wrote:
> >>
> >>>
> >>> Perhaps somethig like this may work :
> >>>
> >>> <fmt:message key="${item.link}" var="link"/>
> >>>
> >>> <html:link  href="${link}" >Some text</html:link>
> >>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


--
Vinit Sharma
IBM

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message