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 =
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 =
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
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
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
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
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
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
8 matches
Mail list logo