Hello, everyone:
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:
<bean name="/login"
class="abc.xyz.Login">
</bean>
3) I added a 'controller' tag to struts-config.xml:
<controller>
<set-property property="processorClass"
value="org.springframework.web.struts.DelegatingRe questProcessor"/>
</controller>
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 pathI'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
in action-servlet.xml?
How do I handle the global 'forward' elements in the
struts-config.xml file?
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....
Regards,
Oswald


I'm still
Reply With Quote