struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Néstor Boscán <>
Subject RV: How to get ServletContext from Interceptor.init
Date Sun, 06 Jan 2008 19:36:22 GMT
Hi Martin
Thanks for the reply
Yes, I need to access a Spring Context object from the Interceptor. So I
basically have 2 options, I can inject them in some way in the interceptor
which I haven't found a way, or I can access the WebApplicationContext from
the init method but I need the ServletContext object.
Saludos Cordiales a ti también


De: Martin Gainty [] 
Enviado el: Domingo, 06 de Enero de 2008 11:56 a.m.
Asunto: RE: How to get ServletContext from Interceptor.init


the short answer is not yet as init() method is called before any requests
are processed

Is there something specific you are seeking?

Saludos Cordiales

Disclaimer and confidentiality note
Everything in this e-mail and any attachments relates to the official
business of Sender. This transmission is of a confidential nature and Sender
does not endorse distribution to any party other than intended recipient.
Sender does not necessarily endorse content contained within this

> From:
> To:
> Subject: How to get ServletContext from Interceptor.init
> Date: Sun, 6 Jan 2008 01:17:41 -0430
> Hi
> Is there a way to get the ServletContext from Interceptor.init. I tried
> using the ActionContext but it returns null.
> Regards,
> Néstor Boscán


Share life as it happens with the new Windows Live. Start sharing!

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message