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.
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">
Yes, this is a bug - the JSP standart syntax library declaration is used for JSP document. Thanks for posting that.
*** Bug 232545 has been marked as a duplicate of this bug. ***
Mates, just to remind you about the issue. It's still exists in 7.4 and very annoying. All platforms are affected.
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