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.

Bug 153865 - Copying JSPs to subfolders creates Java "package" statements in the JSP
Summary: Copying JSPs to subfolders creates Java "package" statements in the JSP
Status: RESOLVED DUPLICATE of bug 153150
Alias: None
Product: javaee
Classification: Unclassified
Component: JSP (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@javaee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-25 14:37 UTC by mbutz
Modified: 2008-11-27 00:16 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mbutz 2008-11-25 14:37:51 UTC
When copying a JSP file to a subfolder of "Web Pages" an "package subfolder;" statement is automatically prepended to
the newly created file. I assume this is not the intended behaviour.

To reproduce create a new empty Web Application project, right click on Web Pages, choose New->Other... and create a new
Folder called test.
Now right click on the index.jsp initially created with the new project and choose Copy from the context menu, then
paste it into the new test folder. The page will contain the text "package test;"
Comment 1 Jayashri Visvanathan 2008-11-26 01:35:02 UTC
Looks like a jspeditor issue to me. If not, please reassign
thanks
Comment 2 David Konecny 2008-11-27 00:16:57 UTC
Looks like very same problem as issue 153150.

*** This issue has been marked as a duplicate of 153150 ***