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 Tue, 04 Apr 2006 07:25:39 GMT
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>
>
>
> Nico.
>
> Vinit Sharma a écrit :
> > Hi,
> >
> > My requirement is to use a message resource key for html:link href
> attribute
> > instead of passing a hardcoded value.
> >
> > Below:
> >
> > <html:link  href="${item.link}" >Some text</html:link>
> >
> > I want to replace, ${item.link} with a key from resource file, btw my ${
> > item.link} returns a key only.
> >
> > Can some one give an insight.
> >
> > Thanks,
> >
> >
> > --
> > Vinit Sharma
> >
> >
>
> This message contains information that may be privileged or confidential
> and is the property of the Capgemini Group. It is intended only for the
> person to whom it is addressed. If you are not the intended recipient,  you
> are not authorized to read, print, retain, copy, disseminate,  distribute,
> or use this message or any part thereof. If you receive this  message in
> error, please notify the sender immediately and delete all  copies of this
> message.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


--
Vinit Sharma

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