You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Damm, Gary" <ga...@qualcomm.com> on 2003/01/21 00:37:35 UTC

MessageResources question...

I'd like to be able to identify the message resources based on the
ServletRequest.  Is there a hook I can use to get the current
MessageResources based on the ServletRequest?  The class I'm using only
has hooks into the ServletRequest and not and struts specific objects.

I believe I can do the following but I'd like to avoid hard coding the
resource name:

...
MessageResources resources =
MessageResourcesFactory.getResources("MyResourceName");
...

Any help appreciated.

Gary

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>