You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Jim Collins <ja...@blueyonder.co.uk> on 2002/12/10 22:50:11 UTC

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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>