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 14915 - JSP Code Completion Not Working for variables declared in another scriplet
Summary: JSP Code Completion Not Working for variables declared in another scriplet
Status: CLOSED DUPLICATE of bug 8600
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: PC Windows 3.1/NT
: P3 blocker (vote)
Assignee: issues@platform
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-08-29 14:34 UTC by Cory Powers
Modified: 2001-09-19 10:26 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 Cory Powers 2001-08-29 14:34:54 UTC
I declare a variable declaration block of code and code completion does not 
provide that variable in its list of defined variables in any other scriplet 
tags. i.e.

<%! MyClass var = new MyClass(); %>
<!-- Some HTML -->
<%= //var is not available in the code completion list here %>
<% //var is not available in the code completion list here %>

If I declare the variable inside of the scriptlet block then the variable is 
available in the code completion list while I am inside that same blocak of 
code. If I open another scriplet then the variable is no longer visible in the 
code completion list. i.e.

<% MyClass var = new MyClass();
//In here var is in the code completion list
%>
<!-- Some HTML -->
<%= //var is not available in the code completion list here %>
<% //var is not available in the code completion list here %>
Comment 1 _ rkubacki 2001-09-05 14:50:01 UTC

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