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=25095>. 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=25095 The code generated by <jsp:plugin> is not suitable for XHTML Summary: The code generated by <jsp:plugin> is not suitable for XHTML Product: Tomcat 4 Version: 4.1.29 Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Normal Priority: Other Component: Jasper AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] when a JSP file contains the following fragment: <jsp:plugin type="applet" codebase="./test" code="TestApplet.class"> <jsp:fallback> <p>Failed</p> </jsp:fallback> </jsp:plugin> The content produced by it looks like this: <OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" codebase="http: //java.sun.com/products/plugin/1.2.2/jinstall-1_2_2-win.cab#Version=1,2,2,0"> <PARAM name="java_code" value="TestApplet.class"> <PARAM name="java_codebase" value="./test"> <PARAM name="type" value="application/x-java-applet;"> <COMMENT> <EMBED type="application/x-java-applet;" pluginspage="http://java.sun. com/products/plugin/" java_code="TestApplet.class" java_codebase="./test" > <NOEMBED> </COMMENT> <p>Failed</p> </NOEMBED></EMBED> </OBJECT> This has been tested for MSIE "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5. 0; NetCaptor 7.2.2)" and Opera "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5. 0) Opera 7.21 [en]". Usually the generated code works as intended, but for XHTML it is not acceptable for 2 reasons: the tag names must be lowercase and the tags must be properly nested (in this case <COMMENT> is partially overlapped with <EMBED> and <NOEMBED>). IE tolerates such content and processes it as expected, but Opera reports an XML parsing error (unless Content-Type returned by the server is text/html, when it is parsed as HTML rather than XML). Moreover, neither of <embed>, <noembed> <comment> tags is a valid XHTML tag. I believe the JSP compiler should check the "contentType" attribute of the <% @page %> directive and generate appropriate content for the given content type. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]