Re: MessageResources in ActionForm

2003-11-25 Thread Honza Spurn
Manish Singla wrote: Hi Use following MessageResources mr = ((MessageResources) request.getAttribute(Globals.MESSAGES_KEY)); what is Globals ??? I've tried it, but my java compiler does not knows it... Instaed of MessageResources mr =

Re: MessageResources in ActionForm

2003-11-25 Thread Honza Spurn
Manish Singla wrote: Hi Use following MessageResources mr = ((MessageResources) request.getAttribute(Globals.MESSAGES_KEY)); what is Globals ??? I've tried it, but my java compiler does not knows it... Instaed of MessageResources mr =

Re: MessageResources in ActionForm

2003-11-25 Thread Frers Michael
Globals are in the struts.jar org.apache.struts.Globals Have a nice day Michael - Original Message - From: Honza Spurn [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, November 25, 2003 11:07 AM Subject: Re: MessageResources

MessageResources in ActionForm

2003-11-24 Thread Honza Spurn
Hi there, I'm able to read values from MessageResources in JSP files. But in special case I need to read such values in java-classes. Unfortunatelly I need it in ActionForm in validate() method... To understand me I'm attaching my vision of how it could be very easy (it doesn't work): public

Re: MessageResources in ActionForm

2003-11-24 Thread Manish Singla
Hi Use following MessageResources mr = ((MessageResources) request.getAttribute(Globals.MESSAGES_KEY)); Instaed of MessageResources mr = request.getMessageResources(); HTH Manish Singla Honza Spurn wrote: Hi there, I'm able to read values from MessageResources in JSP files. But in special

MessageResources from ActionForm

2002-07-25 Thread David Wood
I saw some posts with this question, but no answer. How do you access the MessageResources from within an ActionForm, specifically from the validate method? I need to test the value of a button that was submitted, but the value is localized in the messages. I can test for this from the Action

RE: MessageResources from ActionForm

2002-07-25 Thread Jon.Ridgway
Hi Dave, Try getServlet().getResources().getMessage(key); Or getServlet().getResources().getMessage(locale, key); Jon Ridgway -Original Message- From: David Wood [mailto:[EMAIL PROTECTED]] Sent: 25 July 2002 15:20 To: Struts Users Mailing List Subject: MessageResources from

RE: MessageResources from ActionForm

2002-07-25 Thread Leblon Jean-marc
Hello, try HttpServletRequest.getParameter(key) JML [EMAIL PROTECTED] -Original Message- From: David Wood [mailto:[EMAIL PROTECTED]] Sent: jeudi 25 juillet 2002 16:20 To: Struts Users Mailing List Subject: MessageResources from ActionForm I saw some posts with this question