Results 1 to 5 of 5

Thread: Spring MVC servlet specification compatibility

  1. #1
    Join Date
    Aug 2004
    Location
    New York
    Posts
    168

    Default Spring MVC servlet specification compatibility

    One of our teams is debating whether to use struts or spring for MVC. Having worked first hand with both, I recommended they go with Spring. One of their cons, however, is that Spring mvc does not support Servlet specification 2.2 and because of other requirements, they need to use Tomcat 3.2.4. I pointed them to the documentation on Creating an ApplicationContext from a web application which mentions ContextLoaderServlet 2.2 support, but I cannot find an explicit statement on spring mvc's compatibility with Servlet 2.2. Is there a definitive statement I can point them towards?

    Thanks.

    -karl
    Karl Baum
    weblog: www.jroller.com/page/kbaum

  2. #2
    Join Date
    Aug 2004
    Location
    Southampton, UK
    Posts
    826

    Default

    Karl,

    There should be no issues running on Servlet 2.2 as long as you use the ContextLoaderServlet instead of ContextLoaderListener.

    Rob
    Rob Harrop
    Lead Engineer, dm Server
    SpringSource
    http://www.springsource.com

    Co-Author - Pro Spring

  3. #3
    Join Date
    Aug 2004
    Location
    New York
    Posts
    168

    Default

    I thought that was the case. One issue that is swaying them toward struts, however, is the lack of jstl tag support in servlet 2.2. I pointed them toward using velocity templating (I think that is servlet 2.2 compatible), but I doubt they will go away from jsp's.

    Do you think it's feasible to use spring mvc and jsp's without the convenience of jstl tags?
    Karl Baum
    weblog: www.jroller.com/page/kbaum

  4. #4
    Join Date
    Aug 2004
    Location
    Southampton, UK
    Posts
    826

    Default

    Its hard to build forms using Spring MVC if you don't have access to certain tag interfaces like IterationTag which are not present in JSP 1.1. If you can't use Velocity or FreeMarker then you should assess something other than SpringMVC.

    Rob
    Rob Harrop
    Lead Engineer, dm Server
    SpringSource
    http://www.springsource.com

    Co-Author - Pro Spring

  5. #5
    Join Date
    Aug 2004
    Location
    New York
    Posts
    168

    Default

    Thanks for the advice Rob! I'll fill them in.
    Karl Baum
    weblog: www.jroller.com/page/kbaum

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. Replies: 5
    Last Post: Aug 9th, 2008, 05:30 AM
  3. Spring Web and Servlet 2.4/JSP 2.0
    By alruiz15 in forum Web
    Replies: 4
    Last Post: Dec 26th, 2005, 10:32 AM
  4. Replies: 2
    Last Post: Mar 21st, 2005, 11:42 PM
  5. Replies: 14
    Last Post: Feb 21st, 2005, 05:41 PM

Posting Permissions

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