Results 1 to 2 of 2

Thread: SpringMVC vs Struts

  1. #1

    Default 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?

    Thanks!

  2. #2
    Join Date
    Aug 2004
    Location
    Denver
    Posts
    249

    Default

    It's easy to do in Struts 2 by implementing the Preparable interface. Struts 1 - not so easy.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •