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.
In an JEE 1.4 web project if I press Alt+F1 on the "getContextPath()" in the following line servlet.getServletContext().getContextPath() an URL from JEE 6 is shown: http://127.0.0.1:8082/resource/jar:file:/C:/Program%2520Files/NetBeans%25206.8/enterprise6/docs/javaee6-doc-api.zip!/docs/api/javax/servlet/ServletContext.html#getContextPath%28%29
I would expect that Alt-F1 simply uses JavadocForBinaryQuery to find out which javadoc should be shown - this bug should belong to the code that provides the data for the query.
The way this is currently implemented is that Java EE specification version is used to: * list available application servers * decide in which version misc deployment descriptor files (eg. web.xml) should be created * decide which wizards should be available for project * etc. BUT Java API/Javadoc is offered based on project classpath regardless of Java EE specification version, that is if you create a project with specification version Java EE 1.4 and your application server is GlassFish V3 (==Java EE 6) then available Java API/Javadoc will be Java EE 6. I agree that UI is misleading and should be improved to clearly communicate what Java EE spec versio is for. This is how it worked since NB4 though. If you really want to develop Java EE 1.4 app then I would suggest to use 1.4 EE server in your project.
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