tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 4450] New: - Warn if incorrect DTD referenced
Date Fri, 26 Oct 2001 14:13:22 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4450>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4450

Warn if incorrect DTD referenced

           Summary: Warn if incorrect DTD referenced
           Product: Tomcat 4
           Version: 4.0.1 Final
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: simon_g_brown@yahoo.com


Specifying an incorrect DTD in the webapp descriptor file (WEB-INF/web.xml) 
doesn't seem to affect the use of the webapp. A good example of an incorrect 
DTD is:

<!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/j2ee/dtds/web-app_2_3.dtd">

Other JSP 1.2 servers refuse to startup webapps that don't specify the DTD as:

<!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">

This isn't a big issue, but can cause confusion when porting from Tomcat to 
other servers. Is it possible that a warning could be displayed in the console 
when an incorrect DTD is referenced? This would be similar to the way that 
errors in the web.xml file are shown.

Cheers
Simon

Mime
View raw message