You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Marc Logemann <ma...@logemann.org> on 2005/02/23 17:31:01 UTC
localized ActionMessage ReplacementValue
Hi,
as it seems the replacementValues of ActionMessage get not localized by
Struts. This is pretty ok for most cases, because normally you pass a
paramter like username to a message. But i need to pass a localized
replacementValue to ActionMessage.
Whats the best way to do it? I am in the validate() method of my
FormBean and need to localize my replacementValue manually and pass it
to ActionMessage.
I know the plain Java way of auqiring a resourcebundle, but this would
involve hardcoding the allready defined bundle name in the code. This
cant be the best way to do it. I am hoping for some helper class in
struts for that ;-)
Thanks
--
regards
Marc Logemann
http://www.logemann.org
http://www.logentis.de
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org