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

Summary: JSP Code Completion Not Working for variables declared in another scriplet
Product: javaee Reporter: Cory Powers <cpowers>
Component: CodeAssignee: issues@platform <issues>
Status: CLOSED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 3.x   
Hardware: PC   
OS: Windows 3.1/NT   
Issue Type: DEFECT Exception Reporter:

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 ***