I am having a used defined intercepter,from the intercepter i want to make a db call through DAO layer, so how can i inject spring bean to struts intercepter.is it possible
EDIT
Since there is no need to declare the Interceptor as Spring bean, I striked the unnecessary parts. Thanks to @AleksandrM for testing it.
Exactly the way you do with Actions , with (if I remember well) the exception of declaring it in beans.xml because Interceptors don't extend ActionSupport (that is autowired by default) .
web.xml
org.springframework.web.context.ContextLoaderListener
ApplicationContext.xml
Struts.xml
MyInterceptor.java
private DaoService daoServiceBean; // Autowired by Spring
Also read: