Jim,
What version of Struts are you using? If it is 1.1b, then have you looked at
the org.apache.struts.validator.Resources class? I think that will give you
access to the MessageResource that you want.

-Richard



> -----Original Message-----
> From: Jim Collins [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, December 10, 2002 1:50 PM
> To:   Struts Users Mailing List
> Subject:      Getting MessageResources from a ActionForm
> 
> Hi,
> 
> I would like to get a MessageResoure from an ActionForm. I thought of
> calling servlet.getResources() but according to the documentation this
> method is deprected. I want to use the ActionForm to populate a select
> with
> values from my ApplicationResources. I have seen the select example and
> know
> that I can do it from the JSP but I would like to set the values from an
> ActionForm. I am currently setting the values from the ActionForm but the
> values are hard coded in the ActionForm and I would like to be able to get
> them from the ApplicationResources.
> 
> If anyone knows how I can do this without calling a deprecated method it
> would be appreciated.
> 
> Thanks
> 
> Jim.
> 
> 
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>

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

Reply via email to