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.
The following include displays an error in the editor but runs fine. <%@include file="/include.jsp" %> The errors are below : index is already defined in SimplifiedJSPServlet error is already defined in SimplifiedJSPServlet The source of the include is the following <%@ page language="java" contentType="text/html;charset=UTF-8" %> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%@ taglib prefix="f" uri="http://java.sun.com/jsp/jstl/fmt" %> <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> <%@ taglib prefix="js" uri="http://www.midwesttapes/jsp/jstl/js/functions" %> <%@ taglib prefix="html" uri="struts-html" %> <%@ taglib prefix="stripes" uri="http://stripes.sourceforge.net/stripes.tld" %> <%@ taglib prefix="s" uri="http://stripes.sourceforge.net/stripes.tld" %> <%@ taglib prefix="mwt" uri="mwt" %> <%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %> <f:setBundle basename="ApplicationResources"/> <f:setBundle basename="StripesResources" var="stripesResources"/>
Created attachment 87721 [details] error screen shot
What version of NetBeans have you used? I cannot reproduce it with the 6.8 nightly builds. I haven't used all the 3rd party libs though..
I just downloaded NB 6.8 beta and it has the same issue.
I belive this is a duplicate of Issue 139380 - incorrect error marks when mixing jsp tags and scriptlets. Leaving the final decision on Tomasz though
I just checked this issue in the 6.8 release and it appears to have gone away
ok, closing as fixed, the second issue I mentioned is still valid.
I have NetBeans 6.8 but I am still getting the same error, can you please provide me what library file needs to add?
I am seeing the same error message as #172334 (reported against NB 6.8) in NetBeans IDE 7.3 patch 1 (Build 201302132200) on Windows 7. What I found was that in my JSP if I only have: <%@taglib uri="/component_1.tld" prefix="a" %> I don't have any error. However, if I have 2 instances of the TLD, like: <%@taglib uri="/component_1.tld" prefix="a" %> <%@taglib uri="/component_1.tld" prefix="b" %> I get the error message: variable key is already defined in class SimplifiedJSPServlet variable value is already defined in class SimplifiedJSPServlet I am attaching the sample TLD for reference.
Created attachment 133533 [details] Sample TLD that causes error when used 2 times in JSP
Confirmed the exact same conditions for failure here on the latest stable build. I am working with out of the box vendor code that references the same tld twice using two different prefixes. I am getting moot errors all over the place all referring to SimplifiedJSPServlet.
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.