DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=31670>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=31670 <include-prelude> silently ignored in web.xml that uses 2.3 DTD Summary: <include-prelude> silently ignored in web.xml that uses 2.3 DTD Product: Tomcat 5 Version: 5.0.27 Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Normal Priority: Other Component: Jasper AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] It appears that <include-prelude> is ignored in a web.xml with 2.3 DTD headers, even though that tag was not introduced until 2.4. Should use of this tag prior to v2.4 cause an exception to be thrown? I reinstalled 5.0.27 from scratch (on Win2k / JDK 1.4.2_05). I then added a simple webapp called "test" by adding these three files under the webapps folder: test\index.jsp test\prelude.jspf test\WEB-INF\web.xml The file contents are as follows (I know that the jsps contain incomplete HTML but they suffice to keep the example simple). --index.jsp-- ========================== <p>This is index.jsp</p> ========================== --prelude.jspf-- ========================== <p>This is prelude.jspf</p> ========================== --web.xml-- ========================== <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> <web-app> <jsp-config> <jsp-property-group> <url-pattern>*.jsp</url-pattern> <include-prelude>prelude.jspf</include-prelude> </jsp-property-group> </jsp-config> </web-app> ========================== Note that the web.xml above uses the 2.3 DTD. I made no other changes to the standard installation. I then started tomcat (I already have it installed as a service). I then accessed http://localhost:8080/test/ using IE6. This displayed the file index.jsp. The browser showed just the text "This is index.jsp". In other words, no text from prelude.jspf was included even though this is configured in web.xml. No errors were logged in any of the logfiles. As a check, I then stopped tomcat and edited web.xml to give it the 2.4 headers, deleted all the files from the work directory, then restarted tomcat and ctrl-F5'd IE to force-reload the page. This time, the text from prelude.jspf was included in index.jsp, and no errors were logged. So, as far as I can tell, it seems that the <include-prelude> tag is being silently ignored when placed in a 2.3 web.xml, but no errors are being thrown. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]