Results 1 to 5 of 5

Thread: JSTL 1.0 why?

  1. #1
    Join Date
    Nov 2004
    Location
    Dallas, TX USA
    Posts
    24

    Default JSTL 1.0 why?

    Greetings,

    Moving into spring MVC over the past couple of days, I quickly found that Spring 1.1 and 1.1.1 both are packaged with the older jstl.jar and standard.jar for JSTL 1.0. This causes some complications when using the EL with my JSTL views. Others have run into the same complications http://forum.springframework.org/sho...highlight=jstl
    The problem is sloved by switching out the JSTL libraries packaged with Spring for the new Jakarta Taglibs 1.1.x distribution. I'm wondering why not avoid confusion. and package Spring with JSTL 1.1?

    Thanks
    Last edited by robyn; May 14th, 2006 at 11:51 AM.
    -steve

  2. #2
    Join Date
    Aug 2004
    Location
    Athens, GA
    Posts
    20

    Default

    JSTL 1.1 works with 2.4 servlets/ 2.0 jsp only while JSTL1.0 works with 2.3. Not everyone uses a 2.4 web container, would probably be the logic behind the choice to use JSTL1.0

  3. #3
    Join Date
    Nov 2004
    Location
    Dallas, TX USA
    Posts
    24

    Default

    I agree with you about older non-2.4 conmpiant containers being a good reason to stick with JSTL 1.0. But I don't agree with one statement.

    JSTL 1.1 works with 2.4 servlets/ 2.0 jsp only
    JSTL 1.1 is backward compatible with servlet spec 2.3 and Jsp 1.2. To confirm, I deployed the JSTL 1.1 libraries jstl.jar and standard.jar into the countries demo. It works.
    -steve

  4. #4
    Join Date
    Aug 2004
    Location
    Toulouse, France
    Posts
    148

    Default

    Let's say it another way : JSTL1.1 may work with servlet 2.3 containers but is not fully supported. Having a sample working doesn't mean that all JSTL1.1 works.
    So, to be on the safe side, JSTL 1.0 had to be distributed with spring since servlet 2.3 containers are targeted.

    Olivier

  5. #5
    Join Date
    Nov 2004
    Location
    Dallas, TX USA
    Posts
    24

    Default

    Thanks Olivier, I now understand the reasoning.
    -steve

Similar Threads

  1. JSTL and messageResource settings
    By AymericAlibert in forum Web
    Replies: 10
    Last Post: May 3rd, 2007, 04:15 PM
  2. Replies: 1
    Last Post: Oct 11th, 2005, 05:02 PM
  3. Template engine + JSTL
    By simtin in forum Web
    Replies: 5
    Last Post: Sep 6th, 2005, 03:18 AM
  4. Load JSTL views from outside the web-app
    By MattiasR in forum Web
    Replies: 2
    Last Post: Aug 15th, 2005, 05:17 AM
  5. Replies: 2
    Last Post: Feb 23rd, 2005, 11:43 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
  •