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:58:10 GMT
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>
> >
> >
> > 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
>



--
Vinit Sharma

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