Hi Piloupy,

You can use JSTL to format the link before passing it to the <html:link>
tag:

<fmt:message var="myContactMail" key="${contact.mail}" />
<html:link href="${myContactMail}" ... />

Also, take a look at:
http://struts.apache.org/1.3.8/struts-taglib/tlddoc/html/link.html, you can
actually specify a bundle and access key for the tooltip message directly in
the <html:link> tag.

HTH
-Rod

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of piloupy
GOTTAPIL
Sent: Monday, April 23, 2007 11:29
To: Struts Users Mailing List
Subject: Re: Use EL to access to a key from the MessageResources.properties

I precisely want to use the <html:link> to benefit from the relative
context path.

Thanks,

piloupy

On 4/23/07, Lance <[EMAIL PROTECTED]> wrote:
> <a href="<bean:message key="contact.mail" />">Email Link</a>

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




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

Reply via email to