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.
If the developer keeps JSPs in WEB-INF/lib, the execute action currently works but causes the browser to send a request to http://hostname:port/context/WEB-INF/... which obviously doesn't work. We should either not provide an execute action on such JSPs, or we should ask the user to specify a URL such that it will cause the request dispatcher to execute the JSP in question. (HIE action). We should also explain what the valid locations for JSPs are, and what the consequences are of placing a JSP in the module docroot or under WEB-INF in the new JSP wizard.
While anything begining with /WEB-INF is invalid we can use web module URI. This is not optimal but can be done without extra dialog or a new property or similar. Thoughts?
If Ann is OK with this, we can go with the web module root for now. For projects we need to discuss whether to keep execution of individual JSPs at all. In a front controller application, such execution usually doesn't work. If a developer needs a shortcut to execute a specific resource they'd be better of using the HTTP Monitor, or bookmarks in the browser.
My preferred solution is to ask the user for a URL in that case (as opposed to just executing the web module root), since that will send a clear signal that those JSPs are special.
I'd propose that we actually remove the "execute" context menuitems on jsps in WEB-INF. Here's the reasoning: Long term, I think that with a projects or build system concept it should be that the user runs a web module and perhaps files that make sense to run. I understand that it could be "educational" to show a info dialog, but I'd draw the line of allowing them to enter a URL to run - since it prob is not the user's intention to run the web module when they are choosing the "Run/Execute" context menu off a particular JSP. Competitors Notes: It looks like Websphere AD brings up some warning (*"Couldn't find anything to deploy") whereas JBuilder 8 does not offer the option to run jsps within the WEB-INF.
I think the usability motivation of the execute action on JSPs in WEB-INF is that when the user is editing a page (any page) in the editor, she should be able to deploy the web module and test the page (whatever that means) using a single keyboard shortcut associated with the "execute" action. She should not be forced to go to the main menu or the popup menu and select "Run Project" or anything.
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