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 176920 - library autoimport using jsp standart syntax in jspx files
Summary: library autoimport using jsp standart syntax in jspx files
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: JSP (show other bugs)
Version: 6.x
Hardware: PC All
: P3 normal with 1 vote (vote)
Assignee: issues@javaee
URL:
Keywords:
: 232545 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-11-16 09:27 UTC by zipoking
Modified: 2016-07-07 08:55 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 zipoking 2009-11-16 09:27:09 UTC
I'm using NetBeans 6.8beta and I've following JSP file:

<?xml version="1.0" ?>
<jsp:root version="2.0"
            xmlns:jsp="http://java.sun.com/JSP/Page"
            xmlns:f="http://java.sun.com/jsf/core"
            xmlns:h="http://java.sun.com/jsf/html">

    <jsp:directive.page contentType="text/html" pageEncoding="utf-8" />
    <jsp:output omit-xml-declaration="no"
                doctype-root-element="html"
                doctype-public="-//W3C//DTD XHTML 1.1//EN"
                doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" />
    <f:view>
        <html xmlns="http://www.w3.org/1999/xhtml" lang="pl-PL" xml:lang="pl-PL">
            <f:subview id="header">
                <jsp:include page="WEB-INF/jsp/header.jsp" />
            </f:subview>

            <h1>Some content</h1>

            <f:subview id="footer">
                <jsp:include page="WEB-INF/jsp/footer.jsp" />
            </f:subview>
        </html>
    </f:view>
</jsp:root>

When I'm trying to add some JSTL (e.g. foreach) element from Palette (using drag'n'drop functionality) information about tags library are added into site in invalid way, i.e. in result on the begin of the page I have:

<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<?xml version="1.0" ?>
<jsp:root version="2.0"
            xmlns:jsp="http://java.sun.com/JSP/Page"
            xmlns:f="http://java.sun.com/jsf/core"
            xmlns:h="http://java.sun.com/jsf/html">

instead of:

<?xml version="1.0" ?>
<jsp:root version="2.0"
            xmlns:jsp="http://java.sun.com/JSP/Page"
            xmlns:f="http://java.sun.com/jsf/core"
            xmlns:h="http://java.sun.com/jsf/html"
            xmlns:c="http://java.sun.com/jsp/jstl/core">
Comment 1 Marek Fukala 2009-11-16 09:48:34 UTC
Yes, this is a bug - the JSP standart syntax library declaration is used for JSP document. Thanks for posting that.
Comment 2 David Konecny 2013-08-22 02:15:35 UTC
*** Bug 232545 has been marked as a duplicate of this bug. ***
Comment 3 grafviktor 2013-12-06 17:58:00 UTC
Mates, just to remind you about the issue. It's still exists in 7.4 and very annoying. All platforms are affected.
Comment 4 Martin Balin 2016-07-07 08:55:38 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