Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Update Servlet version from 2.4 to 2.5

 
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Report post to moderator
I tried to change the servlet version of my web application from 2.4 to 2.5.

The web application in 2.4 which was developed and runned successfully in a Jetty server did not work properly with 2.5. The problem lied with JSTL. It would not recognize the ${} method of accessing variables.

All I did changes was the descriptor in the web.xml from
<web-app id="WebApp_ID" version="2.4" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/j2ee"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">

to the following:
<web-app id="WebApp_ID" version="2.5"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">

The Jetty server which ran my web application in Servelet API 2.4 did use the servlet-api-2.5, with JSTL 1.1.2, JSP-API 2.0 and standard-1.1.2.

I tried to update the JSTL to 1.2 (standard package is included in this version) and JSP-API to 2.1 but it made no difference.
 
Marshal
Posts: 67451
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Report post to moderator
This is essentially the same issue as your JSP post. Please continue any discussion there.
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic