You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by James Mitchell <jm...@apache.org> on 2003/04/16 15:09:09 UTC

Re: accessing ApplicationResources properties from Action class

On Wednesday 16 April 2003 05:05 pm, William Salvucci wrote:
> Is there an easy way to get ApplicationResources properties from within an
> Action class?
>
> In the ActionServlet code, it looks like a MessageResources loaded from
> ApplicationResources.properties is added to ServletContext, but how can I
> access ServletContext from the Action class?
>
> I know I can explicitly get the resource bundle myself, but I was thinking
> that since struts already loaded it, I should be able to get properties
> from there.

So looking at the struts-example was not helpful?

-- 
James Mitchell
Software Developer/Struts Evangelist
http://www.open-tools.org




---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org