You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Security Management <li...@secmgmt.com> on 2009/02/26 18:23:17 UTC
getText from an interceptor
I have LoggedInInterceptor.java and LoggedInInterceptor.properties in a
package, how do I use getText from the interceptor to read from the
properties file?
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: getText from an interceptor
Posted by Zarar Siddiqi <za...@gmail.com>.
If your actions are extending ActionSupport than you can go like so:
public String intercept(ActionInvocation invocation) throws Exception {
String message = ((ActionSupport)
invocation.getAction()).getText("resource.key")
...
}
Zarar
On Thu, Feb 26, 2009 at 12:23 PM, Security Management
<li...@secmgmt.com> wrote:
> I have LoggedInInterceptor.java and LoggedInInterceptor.properties in a
> package, how do I use getText from the interceptor to read from the
> properties file?
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org