Results 1 to 2 of 2

Thread: A plan for implementing our web apps with Spring

  1. #1
    Join Date
    Aug 2004
    Posts
    1

    Default A plan for implementing our web apps with Spring

    Hello,

    I'm in the process of examining alternatives to Struts in a large public sector app development environment. I am extremely impressed with Spring's IOC approach to glueing the MVC together (something I have had to handle by myself in the past with Struts).

    I'm looking for some advice on a good View to Controller to Model to View strategy that will gracefully handle domain concepts with multiple levels of dependency, form field validation, business rules validation, and error handling. Specifically could someone recommend a particular Spring Controller, Command Controller, Handler Mapping, Handler Interceptor usage strategy?

    Struts is so inflexible that I didn't have to deal with many choices! If this is too vague, let me know. I guess I'm just looking for some folks' experiences with wiring together a Spring based app.

    My Thanks,
    j

  2. #2
    Join Date
    Aug 2004
    Location
    Melbourne, Australia
    Posts
    1,104

    Default Spring MVC

    It depends on your needs. I'd recommend looking at the Spring samples and try a few. JPetstore has samples in Struts and Spring MVC for comparison.

    I've used SimpleUrlHandlerMapping in combination with SimpleFormController for several types of forms (add/edit) and MultiActionController to handle several 2-3 liner actions (e.g. display list, delete item, etc...). For view - JSP using JSTL is a good choice - again see Spring samples.

    Re: Validation
    The great thing with Spring MVC (unlike Struts) is that you validation is not dependent on the framework or Servlet API (i.e. you can test your validation logic outside of the container).

Similar Threads

  1. Spring MVC Web Framework versus Struts
    By biguniverse in forum Web Flow
    Replies: 27
    Last Post: Aug 29th, 2012, 03:57 AM
  2. How to make runtime configurable apps with Spring?
    By wangjammer5 in forum Architecture
    Replies: 10
    Last Post: Jul 19th, 2006, 01:36 PM
  3. Replies: 29
    Last Post: Apr 12th, 2005, 05:24 PM
  4. Replies: 14
    Last Post: Feb 21st, 2005, 05:41 PM
  5. Using spring for standalone apps
    By tv in forum Architecture
    Replies: 1
    Last Post: Sep 29th, 2004, 05:47 AM

Posting Permissions

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