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 - Java objects declared in NESTED included JSP fragments are not visible
Summary: Java objects declared in NESTED included JSP fragments are not visible
Status: NEW
Alias: None
Product: javaee
Classification: Unclassified
Component: JSP (show other bugs)
Version: 8.1
Hardware: PC Mac OS X
: P3 normal (vote)
Assignee: issues@javaee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-28 20:35 UTC by brychcy
Modified: 2016-01-10 21:13 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
patch and testcase (7.12 KB, patch)
2015-09-28 20:46 UTC, brychcy
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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!