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 246337 - No connections between JSPF files included into single JSP page
Summary: No connections between JSPF files included into single JSP page
Status: NEW
Alias: None
Product: javaee
Classification: Unclassified
Component: JSP (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: issues@javaee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-08 04:39 UTC by Martin Fousek
Modified: 2014-08-08 04:39 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Fousek 2014-08-08 04:39:46 UTC
Second part of the issue #246249 is about connections between variables included into single JSP file. That's feature we've never supported before. Original text of the issue from reporter is:

fileA.jspf:
<%
String myString = "Hello there";
%>

fileB.jspf:
<%
out.print(myString);
%>

main.jsp:
<%@ include file="WEB-INF/jspf/fileA.jspf" %>
<%@ include file="WEB-INF/jspf/fileB.jspf" %>
<%
out.print(myString);
%>

> Netbeans recognises the myString variable in the main.jsp page, but gives
> the following warning in the fileB.jspf, by highlighting the myString
> variable in red:
> 
> cannot find symbol
>  symbol: variable myString
>  location: class SimplifiedJSPServlet