Bookmark Topic Watch Topic
  • New Topic

Update Servlet version from 2.4 to 2.5  RSS feed

 
Sverre Moe
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.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • 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.
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!