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.
i probable add my custom(emvx) file extension to Options - Advanced Options - System - Object type - jsf jsp Objects and nothing was changed by editor and file type icon. I have NB 6.0 beta1. This work fine in NB5.5.1 and NB5.0
Created attachment 49298 [details] image to issue
I cannot reproduce the problem, the JSP loader loads the files with the extension added in the advanced options to the JSP object type. However, plenty of exceptions are thrown then when trying to open the file. See attached log file.
Created attachment 49346 [details] The exceptions
not critical issue, the fix is not trivial - the jsp parser expects the standart file extensions.
*** Issue 121851 has been marked as a duplicate of this issue. ***
> not critical issue, the fix is not trivial - the jsp parser expects the standart file extensions. So should we open an enhancement request against the JSP parser, or against GlassFish?
I think the problem is more in our code than in the parser itself. Currently the JspContextInfo.getContextInfo(FileObject) gets the mimetype from the fileobject and finds an instance of JspContextInfo in the default filesystem under corresponding folder. However for the custom file extenstions the mimetype is content/unknown so no JspContextInfo is found and then no jsp features work. If I put the custom extension into the web/core mime resolver everythink works fine.
should already work
this problem is not soo critical fo mz new projects. but for mz old projrcts who this exstention alreadz defined is! is this soo complex? older NB versions(5.5) maked this without problem! you can this isssue as fixed commiten, but this not work by me! haave new file test.emvx created and as body from another jsp copied - no results! who must i the settings byy 6.5 changen?
Download netbeans 6.5 beta or recent daily build. Choose Tools -> Options menu. Choose Miscellaneous tab Choose File tab below Click to New... button Specify your extension Select associated mimetype (filetype) in the combobox below - JSP Files (text/x-jsp) Click OK in the right down corner. BETTER restart netbans now Open your file with the special extension => all jsp features works as in normal JSP file
thanks! it's work! super!