(Personally, I'd just try it.) If it's not being used, it's not being used--we don't have any way of knowing if it *actually* isn't being used short of looking at it, but if you say it works without it, then it probably isn't.
Dave On Fri, Feb 20, 2015 at 8:42 AM, Tamer Erdogan <tamer.erdo...@vasco.com> wrote: > 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 > > -- e: davelnew...@gmail.com m: 908-380-8699 s: davelnewton_skype t: @dave_newton <https://twitter.com/dave_newton> b: Bucky Bits <http://buckybits.blogspot.com/> g: davelnewton <https://github.com/davelnewton> so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton>