tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Blakeslee, Todd" <Blak...@diebold.com>
Subject [PATCH] TC3.3b2 - Invalid servlet-mapping in web.xml file generat ed by JspC
Date Fri, 07 Sep 2001 20:54:56 GMT
JspC bugs recently fixed in Tomcat 4.0 also exist in 3.2

cvs diff -u JspC.java (in directory D:\jakarta-tomcat\jakarta-tomcat\src\share\org\apache\jasper)
Index: JspC.java
===================================================================
RCS file: /home/cvspublic/jakarta-tomcat/src/share/org/apache/jasper/JspC.java,v
retrieving revision 1.22
diff -u -r1.22 JspC.java
--- JspC.java	2001/04/28 21:13:36	1.22
+++ JspC.java	2001/09/07 20:40:34
@@ -395,11 +395,11 @@
                 servletout.write("</servlet-class>\n\t</servlet>\n");
             }
             if (mappingout != null) {
-                mappingout.write("\n\t<servlet-mapping>\n\t\t<url-pattern>");
-                mappingout.write(file);
-                mappingout.write("</url-pattern>\n\t\t<servlet-name>");
+                mappingout.write("\n\t<servlet-mapping>\n\t\t<servlet-name>");
                 mappingout.write(thisServletName);
-                mappingout.write("</servlet-name>\n\t</servlet-mapping>\n");
+                mappingout.write("</servlet-name>\n\t\t<url-pattern>");
+                mappingout.write(file.replace('\\', '/'));
+                mappingout.write("</url-pattern>\n\t</servlet-mapping>\n");
             }
             return true;
         } catch (JasperException je) {

*****CVS exited normally with code 1*****

---------------------------------------------------------------------- 
Todd R. Blakeslee [mailto:blakest@diebold.com]

Mime
View raw message