I'm trying to determine the what/when/how/why of migrating
a Struts/Hibernate application to Spring/Hibernate, and
here's a list of what I've done thus far:
1) I created an applicationContext.xml file
2) I created an action-servlet.xml file with definitions
for each Struts 'action' in struts-config.xml, such as:
3) I added a 'controller' tag to struts-config.xml:
4) I added a 'plug-in' tag to struts-config.xml:
<plug-in className="org.springframework.web.struts.ContextL oaderPlugIn"/>
I've deployed the application and I can see that actions
are delegated to the Spring controller, but obviously it's
only a very small step in the migration path I'm still
quite far from the point where I can answer the question,
"what does this [Spring code] buy us?"
Do I need to specify the 'forward' elements in the beans
How do I handle the global 'forward' elements in the
How can I determine whether we ought to do a full
migration from Struts to Spring, or just integrate
Struts with Spring?
In the former case, is there a step-by-step example
available of how to perform this migration?
The motivation for our migration from Struts to Spring
is to leverage JSF for the view layer, Hibernate for
the persistence layer, and Spring as the "glue" that
will enable us to add/remove components whenever it's
deemed necessary to do so.
Comments/feedback is welcome....