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.
@page include with absolute path is ignored in scriptlets (e.g. no code completion, objects defined in included file are not recognized). The workaround is to use a relative path.
Tomasz try to look at the hyperlink implementation. There is a helper method which resolve DataObject(FileObject) to open right file from @page include directive.
*** Issue 121520 has been marked as a duplicate of this issue. ***
The issue gives a bad user experience, but is easy to fix, I think it is worth to fix it for the 6.0 release. The fix was to use a helper method written by ppisl to find a FileObject from a path in the JSP file. The method was moved from JSPHyperlinkProvider to the JspUtils class. Fixed in trunk: Checking in SimplifiedJSPServlet.java; /cvs/web/jspsyntax/src/org/netbeans/modules/web/core/syntax/SimplifiedJSPServlet.java,v <-- SimplifiedJSPServlet.java new revision: 1.35; previous revision: 1.34 done Checking in JspUtils.java; /cvs/web/jspsyntax/src/org/netbeans/modules/web/core/syntax/JspUtils.java,v <-- JspUtils.java new revision: 1.13; previous revision: 1.12 done Checking in JSPHyperlinkProvider.java; /cvs/web/jspsyntax/src/org/netbeans/modules/web/core/syntax/JSPHyperlinkProvider.java,v <-- JSPHyperlinkProvider.java new revision: 1.23; previous revision: 1.22 done
Created attachment 52846 [details] Diff
Testings tips: Test if objects defined in included JSP fragment files are visible. Use different ways to specify paths - absolute and relative, including paths that contain '..'. Check if invalid paths are not causing any troubles. The risk of regressions is low as the helper method that is now called has been used in the JSPHyperlinkProvider for a long time.
This fix is OK. It is safe to put into release60 branch.
Verified in trunk by QE.
fixed integrated into the 'release60' branch. IDE: [11/12/07 3:56 PM] Committing Files started Checking in SimplifiedJSPServlet.java; /cvs/web/jspsyntax/src/org/netbeans/modules/web/core/syntax/SimplifiedJSPServlet.java,v <-- SimplifiedJSPServlet.java new revision: 1.34.2.1; previous revision: 1.34 done Checking in JspUtils.java; /cvs/web/jspsyntax/src/org/netbeans/modules/web/core/syntax/JspUtils.java,v <-- JspUtils.java new revision: 1.12.2.1; previous revision: 1.12 done Checking in JSPHyperlinkProvider.java; /cvs/web/jspsyntax/src/org/netbeans/modules/web/core/syntax/JSPHyperlinkProvider.java,v <-- JSPHyperlinkProvider.java new revision: 1.22.2.1; previous revision: 1.22 done IDE: [11/12/07 3:56 PM] Committing Files finished
verified. NetBeans IDE 6.1 RC2 (Build 200804170002)