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 255608

Summary: Java objects declared in NESTED included JSP fragments are not visible
Product: javaee Reporter: brychcy
Component: JSPAssignee: issues@javaee <issues>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:
Attachments: patch and testcase

Description brychcy 2015-09-28 20:35:32 UTC
DESCRIPTION:
If a webpage.jsp includes fragment1.jspf which includes fragment2.jspf, the objects declared in fragment2.jspf are not visible. (like in bug 112247, but if the fragments include other fragments.)

ANALYSIS:
In IncludedJSPFileProcessor#processIncludedFile, only declarations are copied, not imports or scriptlets.

PROPOSED FIX:
Adapt the include file handling from SimplifiedJspServlet.

I'll attach a patch (including unit test)
Comment 1 brychcy 2015-09-28 20:46:28 UTC
Created attachment 156458 [details]
patch and testcase
Comment 2 brychcy 2016-01-10 21:13:51 UTC
Hi,

will anybody look at this? 

I know it may not be a top priority but I even made a patch with test.

Thanks!