Lukasz,
Thanks. I implemented it as you said but it still didn't work. The
"help.link" is passed thru the java action using getText
addActionError(getText("help.link"));
On Friday, May 15, 2015 3:11 PM, Lukasz Lenart <[email protected]>
wrote:
You can do something like this:
ApplicationResources.properties
help.link=Help ${getLink()} page
base action class:
public String getLink() {
return "<a href='help.jsp'>Help</a>";
}
jsp file
<s:text name="help.link"/>
2015-05-15 13:35 GMT+02:00 lilylove2shop <[email protected]>:
>
>
> It's struts2
>
>
>
> -------- Original message --------
> From: Lukasz Lenart <[email protected]>
> Date: 05/15/2015 2:26 AM (GMT-05:00)
> To: Struts Users Mailing List <[email protected]>
> Subject: Re: Need help with getting the value from
> ApplicationResources.properties
>
> 2015-05-14 22:03 GMT+02:00 Lilylove toshop <[email protected]>:
>> Hi All,
>> I've defined the invalid login in my ApplicationResources.properties as
>> error.login.generic=Invalid login or password. Please contact the <a
>> href="help.jsp">Help Desk</a> to reset your password.
>> Instead of displaying the Help Desk link, it displays <a
>> href="help.jsp">Help Desk</a> on the page.
>> Could you please help!!
>
> Struts version?
>
>
> Regards
> --
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
>
> ---------------------------------------------------------------------
> 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]