Hi all,

I would like to access the Struts message resources from parts of my
application which are not servlet or JSP related, say in business components
or non-JSP presentation parts.

In an action or form I would do something like this:
        MessageResources messages = getServlet().getResources();
        String msg = messages.getMessage( locale, key );

But how can I get my hands on the MessageResources without passing a
reference to the servlet or the MessageResources to the interested
component? Is there a static method lurking somewhere?

TIA

Marcel Maré

WebToTheMax



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

Reply via email to