struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lilylove toshop <lilylove2s...@yahoo.com.INVALID>
Subject Re: Need help with getting the value from ApplicationResources.properties
Date Fri, 15 May 2015 20:57:51 GMT
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 <lukaszlenart@apache.org> 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 <lilylove2shop@yahoo.com.invalid>:
>
>
> It's struts2
>
>
>
> -------- Original message --------
> From: Lukasz Lenart <lukaszlenart@apache.org>
> Date: 05/15/2015  2:26 AM  (GMT-05:00)
> To: Struts Users Mailing List <user@struts.apache.org>
> Subject: Re: Need help with getting the value from ApplicationResources.properties
>
> 2015-05-14 22:03 GMT+02:00 Lilylove toshop <lilylove2shop@yahoo.com.invalid>:
>>  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: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


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