0 Replies Latest reply on Jun 8, 2010 2:39 PM by forfano

    Question about using Servlet version 2.3 in JBoss 5.1

    forfano

      Lads,

       

      We are migrating an application from Jboss 3.2.8 to Jboss 5.1.0GA.

       

      Regarding to the web.xml file for my application. What would be the pros and cons of keeping my we.xml pointing to servlet version 2.3 instead of 2.5.

       

      If I leave my web.xml with <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">  it works quite well so far.

       

      But if I update the web.xml pointing to 2.5 like

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

       

      It then throws expetions which I would expeted. My question is: does it worth the effort to upgrade to 2.5 and fix the issues? What would be the consequences in leaving 2.3?

       

       

      Thanks for any comments.

       

      Flavio