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.
1. Create web application project 2. Open jsp file 3. Type some class name in the java code section - for example ArrayList 4. There would be error that this class can't be resolved 5. Ctrl+tab at the class name end for autocompletion - java.utilArrayList would be listed among available options 6. Press enter on java.util.ArrayList autocomplete item Result: nothing happens - the class is not imported Expected result: java.util.ArrayList should appear in the "<%@page import=" section at the top of the file.
Unfortunately the java refactoring is not enabled for java scriptlets in JSPs so far.
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