Hi,

I have taken over a struts2 application and there is something, that confuses 
me.
Under WEB-INF there is applicationContext.xml with the following content:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" 
"http://www.springframework.org/dtd/spring-beans.dtd";>
<beans default-autowire="autodetect">
</beans>

And in web.xml there is the following:
...
<listener>
      
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
...

And in pom.xml of course the struts2-spring-plugin is added as dependency.
In the web application itself, the spring is not used anywhere. If I remove the 
above definitions, the application itself is running and I don't see any errors.
My question is that, does struts2 needs the spring-plugin absolutely? If I 
remove this dependency, would it be safe or what is the best practice here?

Thanks and kind regards
Tamer Erdogan

Reply via email to