If you use getText() from LocaleAware (and you extend ActionSupport or use 
LocaleAwareSupport) then it will use LocalizedTextUtil which does the parsing of the 
variables in the String...

> -----Original Message-----
> From: Drew McAuliffe [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, October 02, 2003 2:48 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [OS-webwork] Localized text messages - with parameters?
> 
> 
> +1 on this. I think there's something like this working for messages
> coming from the validation framework, but I'd definitely like 
> to see it work with normal error messages. Should be pretty 
> simple, using java.text stuff (though I don't know how it 
> impacts performance).
> 
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Samuel Mota
> Sent: Thursday, October 02, 2003 11:15 AM
> 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