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 54218

Summary: Missing Compile/Run/Debug in JSP context menu
Product: javaee Reporter: zikmund <zikmund>
Component: CodeAssignee: Martin Krauskopf <mkrauskopf>
Status: CLOSED FIXED    
Severity: blocker CC: mfukala, mgrebac
Priority: P3 Keywords: REGRESSION, SIMPLEFIX
Version: 4.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: patch
patch

Description zikmund 2005-01-31 14:20:39 UTC
Build 200501301900

1) Have a WebApp
2) Open context menu (in Projects view) on a JSP file
3) ERROR:
Missing actions:
  - Compile
  - Run file
  - Debug file

Note: see similar actions in java file context menu.
Comment 1 zikmund 2005-01-31 14:30:35 UTC
Menu items are present in build 200501271900 - probably a side effect
of a commit?
Comment 2 Martin Grebac 2005-02-14 15:20:25 UTC
*** Issue 54820 has been marked as a duplicate of this issue. ***
Comment 3 Jiri Kovalsky 2005-02-14 15:23:58 UTC
Please note that this applies also to HTML editor.
Comment 4 Martin Krauskopf 2005-02-23 15:06:40 UTC
I'll try to help with this.
Comment 5 zikmund 2005-02-23 15:35:17 UTC
Issue 52124 is similar (in editor context menu).
Comment 6 Martin Krauskopf 2005-02-23 16:06:24 UTC
Ok, reassigned as well. Started... Patch follows...

If you don't like the patch let me know. Otherwise I will commit it.

I've used layer-declarative approach for all actions. I would like to
also remove duplicating of commons actions for html and x-jsp. It
would be possible with xml entities or another xml related approach as
I was hint by Yarda.
Comment 7 Martin Krauskopf 2005-02-23 16:07:17 UTC
Created attachment 20481 [details]
patch
Comment 8 Martin Krauskopf 2005-02-23 16:07:20 UTC
Created attachment 20482 [details]
patch
Comment 9 Martin Krauskopf 2005-02-23 16:07:54 UTC
Ups, sorry for double-submit of the patch...
Comment 10 Marek Fukala 2005-02-23 16:47:55 UTC
seems to be OK to me. Only one question: Shouldn't be the actions
declarations for HTML DO present in html module layer insted of jsp
module???
Comment 11 Martin Krauskopf 2005-02-23 23:50:10 UTC
Yes, you are right. Only part of them which doesn't belong to the web
project only (run, debug). So I distributed them across both modules -
html, web/project - and replace "incode" style with layer declarative
approach.

Fixed.

Checking in html/src/org/netbeans/modules/html/HtmlLoader.java;
new revision: 1.39; previous revision: 1.38
Checking in html/src/org/netbeans/modules/html/mf-layer.xml;
new revision: 1.8; previous revision: 1.7
Checking in
web/core/src/org/netbeans/modules/web/core/jsploader/JspLoader.java;
new revision: 1.20; previous revision: 1.19
Checking in
web/project/src/org/netbeans/modules/web/project/ui/resources/layer.xml;
new revision: 1.17; previous revision: 1.16

Comment 12 zikmund 2005-02-25 09:56:29 UTC
Verified in 200502241900.
Comment 13 zikmund 2005-03-01 12:30:26 UTC
*** Issue 55619 has been marked as a duplicate of this issue. ***