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 190880 - Auto code generation does not recognize JSP XML syntax
Summary: Auto code generation does not recognize JSP XML syntax
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: JSP Parser (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: issues@javaee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-10 16:37 UTC by jesterfred
Modified: 2015-09-17 13:09 UTC (History)
0 users

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 jesterfred 2010-10-10 16:37:09 UTC
Product Version = NetBeans IDE 6.9.1 (Build 201007282301)
Operating System = Linux version 2.6.32-25-generic running on amd64
Java; VM; Vendor = 1.6.0_20
Runtime = Java HotSpot(TM) 64-Bit Server VM 16.3-b01
Comment 1 jesterfred 2010-10-10 16:40:15 UTC
Using the auto fix features of NetBeans in a JSP XML document, inserts non jsp XML syntax solutions.  An example is the import.  Here is an example:

<%@page import="java.util.ResourceBundle"%>
<?xml version="1.0" encoding="UTF-8"?>

The XML is now not valid.  It should, instead, insert an attribute into <jsp:directive.page/> element like this:

  <jsp:directive.page contentType="text/html" pageEncoding="UTF-8" import="java.util.ResourceBundle"/>
Comment 2 Martin Balin 2015-09-17 13:09:49 UTC
Report from old NetBeans version. Due to code changes since it was reported likely not reproducible now. Feel free to reopen if happens in 8.0.2 or 8.1.