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 8600 - Code completion does not recognize variables from JSP declarations
Summary: Code completion does not recognize variables from JSP declarations
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: All All
: P4 enhancement with 1 vote (vote)
Assignee: Petr Pisl
URL:
Keywords:
: 14915 24408 25401 32517 (view as bug list)
Depends on:
Blocks: 8842
  Show dependency tree
 
Reported: 2000-11-28 15:09 UTC by _ rkubacki
Modified: 2004-09-07 12:23 UTC (History)
3 users (show)

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 _ rkubacki 2000-11-28 15:09:41 UTC
Variables declared inside JSP declarations like
<%! private int access_count = 0; %>
needs to be parsed and offered to user when she/he writes scriplets.
Comment 1 Marek Fukala 2000-11-28 19:21:59 UTC
This problem is little more generic. If the JSP page containg more scriptlets
the CC goes throught these scriptlets and does not offer elements from another
scriptlets event though it is logic to offer CC above whole JSP page.
Comment 2 Jan Chalupa 2001-05-06 15:48:49 UTC
Target milestone -> 3.3
Comment 3 _ rkubacki 2001-05-16 08:15:23 UTC
Change of e-mail address
Comment 4 _ rkubacki 2001-09-05 14:50:00 UTC
*** Issue 14915 has been marked as a duplicate of this issue. ***
Comment 5 Jan Chalupa 2001-11-27 17:37:25 UTC
Target milestone -> 3.3.1.
Comment 6 _ rkubacki 2002-06-18 08:14:39 UTC
*** Issue 24408 has been marked as a duplicate of this issue. ***
Comment 7 Marek Grummich 2002-07-22 12:04:37 UTC
Set target milestone to TBD
Comment 8 Marek Grummich 2002-07-22 12:10:53 UTC
Set target milestone to TBD
Comment 9 _ rkubacki 2002-08-02 14:01:29 UTC
*** Issue 25401 has been marked as a duplicate of this issue. ***
Comment 10 _ rkubacki 2003-04-01 07:19:27 UTC
*** Issue 32517 has been marked as a duplicate of this issue. ***
Comment 11 rsk 2003-06-17 05:40:50 UTC
how has this problem been pushed back so many times 
(years)? This is still occuring in the 3.5 release, and it 
seems just as many people are still noticing it. Was the 
change so big that it really required to be pushed back 
indefinately? (I honestly don't know, it could be a huge 
change).

I vote for this.
Comment 12 rsk 2003-06-17 05:44:13 UTC
Also, this is standard functionality of all other IDEs, 
I'm not entirely convinced this is an enhancement request, 
as it is a request for the IDE to behave onpar with all 
other IDEs.

Also, consider the example:

<%
String s = "Hello";
%>

<HTML>
<BODY>
<%= s.| %>
</BODY>

I do not get any code completion for the s variable... 
while this variable is in scope, it technically should be 
auto completed, as Netbeans offers autocompletion for it 
while its inside of the first block, which is also in 
scope. While this may not throw any exceptions, I do see 
it as a defect in the scoping of the variables (I don't 
mean to throw out random verbs, I don't know how variable 
scope and autocompletion is determined, but it seems near-
sighted currently :)


</HTML>
Comment 13 _ rkubacki 2003-06-17 07:32:53 UTC
Riyad: you are right the problem is pretty old but all the time we
have to balance our work between different areas. One possible
reasoning for assigning such a low priority is that scriplets in JSP
are not so prefered solution when you use MVC pattern ;-) OK, I
understand you and admit that we postponed this when we expected that
the editor will be substantially reworked due to changes in base
editor (lexer and other changes).

Petr, I think the latest jspparser should help with this problem.
Comment 14 rsk 2003-06-17 15:26:07 UTC
Radim,
Ok I can see your point and definately understand you guys 
have a lot of other work to do. I really need to read a 
good Model2/MVC book, because I've got scriplets all over 
the place, and they are killing me :)
Comment 15 capSS 2003-07-04 09:40:14 UTC
*** Issue 30312 has been marked as a duplicate of this issue. ***
Comment 16 zikmund 2004-09-07 12:23:45 UTC
It works fine in NetBeans 4.0 Marking as Fixed.