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=39557>. 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=39557 Summary: Include of JSP documents with custom tag libs Product: Tomcat 5 Version: Unknown Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: Jasper AssignedTo: [email protected] ReportedBy: [EMAIL PROTECTED] Hi, We have two JSP documents a.jsp and b.jsp. Suppose that some custom library is defined correctly under the prefix "x". There is a tag library validator associated with the TLD. The same bug is observed in Tomcat 5 while it is working on Tomcat 4. ---- a.jsp ----- <?xml version="1.0" encoding="UTF-8"?> <jsp:root version="2.0" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:x="http://some/tld" > <jsp:directive.include file="b.jsp"/> </jsp:root> ---- b.jsp ---- <?xml version="1.0" encoding="UTF-8"?> <jsp:root version="2.0" xmlns:jsp="http://java.sun.com/JSP/Page" > <x:doAction/> </jsp:root> When I try to request a.jsp i receive this exception: org.apache.jasper.JasperException: b.jsp(%row%,%column%) The prefix "x" for element "x:doAction" is not bound. But when I add the namespace to the jsp:root of the b.jsp the validator of the taglibrary complains with: Validation error messages from TagLibraryValidator for trx null: org.xml.sax.SAXParseException: Attribute "x" bound to namespace "http://www.w3.org/2000/xmlns/" was already specified for element "jsp:root". This is against JSP 2.0, 2.1 specification: JSP.10.3.5 Collective Application of Inclusion Semantics. This makes inclusion of JSP documents with custom tag libraries that validate the XML view impossible. Best regards, Todor Mollov -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
