Check out:

com.opensymphony.xwork.util.LocalizedTextUtil#findText(Class aClass, String aTextName, 
Locale locale, String defaultMessage, Object[] args)

You can use this to get a parameterized message and then add that... If you think we 
need another method or two on the ValidationAware Interface, then create a Jira 
issue...

Jason

> -----Original Message-----
> From: Samuel Mota [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, October 02, 2003 2:15 PM
> To: [EMAIL PROTECTED]
> Subject: [OS-webwork] Localized text messages - with parameters?
> 
> 
> Is there some way to get the localized text messages 
> receiving parameters to replace?
> 
> Shoud be nice to have a message like this:
> 
> myMsg=Your (?) last login was on ?
> 
> And them call:
> 
> List params = new ArrayList(2);
> params.add(username);
> params.add(logindate);
> addActionError("myMsg",params)
> 
> + Samuel G. Mota
> + [EMAIL PROTECTED]
> + 55 (11) 4417 7093
> + Business Application Dpt.
> + Netset Serviços em Tecnologia
> + a Hypercom Company
> + http://www.hypercom.com
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf 
> _______________________________________________
> Opensymphony-webwork mailing list 
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> 


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to