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 193217 - [70cat] xml entity references in scriptlet marked as erroneous
Summary: [70cat] xml entity references in scriptlet marked as erroneous
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: JSP (show other bugs)
Version: 7.0
Hardware: PC Mac OS X
: P3 normal (vote)
Assignee: issues@javaee
URL:
Keywords:
: 190868 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-12-10 10:27 UTC by host
Modified: 2016-07-07 08:56 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
JSP to highlight the issue (3.03 KB, text/plain)
2010-12-10 10:27 UTC, host
Details
Image showing the bug (21.63 KB, image/gif)
2010-12-10 10:35 UTC, host
Details
Image showing the bug (9.72 KB, image/gif)
2010-12-10 10:35 UTC, host
Details
Image showing the bug (20.98 KB, image/gif)
2010-12-10 10:36 UTC, host
Details
Image showing the bug (9.62 KB, image/gif)
2010-12-10 10:36 UTC, host
Details
Image showing the bug (14.23 KB, image/gif)
2010-12-10 10:37 UTC, host
Details

Note You need to log in before you can comment on or make changes to this bug.
Description host 2010-12-10 10:27:01 UTC
I have attached a JSP file which contains a small Java scriplet that generates XML from database content retrieved via JDBC. The JSP executes fine when run in the browser but still shows error messages in the editor.
Comment 1 host 2010-12-10 10:27:52 UTC
Created attachment 103921 [details]
JSP to highlight the issue
Comment 2 host 2010-12-10 10:35:19 UTC
Created attachment 103922 [details]
Image showing the bug
Comment 3 host 2010-12-10 10:35:41 UTC
Created attachment 103923 [details]
Image showing the bug
Comment 4 host 2010-12-10 10:36:02 UTC
Created attachment 103924 [details]
Image showing the bug
Comment 5 host 2010-12-10 10:36:43 UTC
Created attachment 103925 [details]
Image showing the bug
Comment 6 host 2010-12-10 10:37:13 UTC
Created attachment 103927 [details]
Image showing the bug
Comment 7 Marek Fukala 2013-01-03 10:25:36 UTC
Reproducible.

As the file is an jspx, the scriptlet content needs to escape the characters not allowed in xml text (<, &amp, ....). Hoever it seems that the "SimplifiedJSPServlet" does contain the scriptlet in the raw form so the java code contains the entity references. If I convert them manually in the source, then the java errors are gone, but naturally the jsp parser starts to complain about the unescaped chars.
Comment 8 Marek Fukala 2013-01-03 10:30:30 UTC
*** Bug 190868 has been marked as a duplicate of this bug. ***
Comment 9 Martin Balin 2016-07-07 08:56:08 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss