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 a web project select a JSP file that is not directly located in "Web Pages", but at lest in one directory, e.g. "Web Pages"/abc/index.jsp Now use copy and paste in the context menu to get a copy named index_1.jsp in the same directory. If you open index_1.jsp you can see at the top that the UI added package abc; Please fix that.
Sorry, used wrong version. I'm talking about 6.5, the current release.
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