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.

Bug 45896 - I18N - <%@page pageEncoding attribute inside the comment
Summary: I18N - <%@page pageEncoding attribute inside the comment
Status: CLOSED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: JSP (show other bugs)
Version: 4.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: Petr Pisl
URL:
Keywords: I18N, TOMCAT
Depends on:
Blocks:
 
Reported: 2004-07-07 16:59 UTC by Martin Schovanek
Modified: 2006-03-24 09:53 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Schovanek 2004-07-07 16:59:06 UTC
[#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.
Comment 1 Petr Pisl 2004-07-08 10:26:32 UTC
This is bug in Tomcat and I filled a new bug against the Tomcat.
http://issues.apache.org/bugzilla/show_bug.cgi?id=29971
Comment 2 Petr Pisl 2004-07-22 10:26:14 UTC
We updated the Tomcat version to 5.0.27. But the fix of this bug is
not here. 
Comment 3 Petr Pisl 2004-08-31 17:40:03 UTC
The bug is fixed in the Tomcat's parser. New version 5.0.28 of Tomcat
is integrated. 
Comment 4 Martin Schovanek 2004-09-07 14:31:12 UTC
v
Comment 5 Martin Schovanek 2004-12-15 13:42:08 UTC
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.
Comment 6 Petr Pisl 2004-12-15 15:25:47 UTC
Thanks Martion for opening the tomcat's issue as well. We will have to
wait for the fixing this.
Comment 7 zikmund 2005-02-15 14:39:49 UTC
Fixed in bundled Tomcat 5.5.7.
Comment 8 Jiri Kovalsky 2005-03-31 14:03:59 UTC
Verified in development build #200503301800 of NetBeans 4.1.