Apr 30th, 2008, 02:59 AM
SpringMVC vs Struts
Hi all. I know this is a spring forum, but this is more of a struts question I suppose.
One thing I like about Spring MVC is the easy way it allows you to initialize your form bean before the view is displayed to the user. For example, using the formBackingObject() or setupForm() method, you can setup form fields so they are populated when the view loads.
I never found such a simple way of doing this with stuts (I did do it, but it was very complex) - do you know if there is any easy way in struts?
Apr 30th, 2008, 08:51 AM
It's easy to do in Struts 2 by implementing the Preparable interface. Struts 1 - not so easy.