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 ActionForm

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 
easily enough, but how do I do the same from the ActionForm.

Thanks

-- dave


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


The contents of this email are intended only for the named addressees and
may contain confidential and/or privileged material. If received in error
please contact UPCO on +44 (0) 113 201 0600 and then delete the entire
e-mail from your system. Unauthorised review, distribution, disclosure or
other use of this information could constitute a breach of confidence. Your
co-operation in this matter is greatly appreciated. 

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to