This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
[#200407011917, jdk1.5.0-b3] Steps to reproduce: ------------------- 1) create a new .jsp and delete whole content NOTE: The 'Text > Encoding' property is 'ISO-8859-1' (default encoding). 2) type: <%--<%@page pageEncoding="UTF-16">--%> ERROR: The 'Text > Encoding' property is 'UTF-8' but the encoding should not be affected by this comment.
This is bug in Tomcat and I filled a new bug against the Tomcat. http://issues.apache.org/bugzilla/show_bug.cgi?id=29971
We updated the Tomcat version to 5.0.27. But the fix of this bug is not here.
The bug is fixed in the Tomcat's parser. New version 5.0.28 of Tomcat is integrated.
v
The original case is fixed but if I compile this page: <%-- --%> <%--<%@page pageEncoding="xxx"%>--%> <html> <head><title>JSP Page</title></head> <body> </body> </html> Jasper throws: JasperException: Unsupported encoding: xxx Without the 1st comment the page works fine. I reopened the #29971 Tomcat issue too.
Thanks Martion for opening the tomcat's issue as well. We will have to wait for the fixing this.
Fixed in bundled Tomcat 5.5.7.
Verified in development build #200503301800 of NetBeans 4.1.