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.
Product Version: NetBeans IDE Dev (Build 200802191203) Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b05 System: Windows XP version 5.1 running on x86; MS932; ja_JP (nb) Steps: 1. Create WebApp with Spring framework 2. Open index.jsp in the editor The file hasn't encoding tag in it. Compare with other types of web applications: jsp files have it due to implementation of the file and project encoding functionality. Has it been implemented for spring?
Created attachment 57374 [details] index.jsp
There are two jsp files by default: 1. WEB-INF/jsp/index.jsp 2. WEB-INF/index.jsp (attached above) The first one consists of 1 line and also hasn't encoding tag: <h5>this is the /WEB-INF/jsp/index.jsp</h5> If user creates new jsp file it has encoding tag and looks ok.
> 1. WEB-INF/jsp/index.jsp > 2. WEB-INF/index.jsp (attached above) > The first one consists of 1 line and also hasn't encoding tag: > <h5>this is the /WEB-INF/jsp/index.jsp</h5> I've since renamed the second index.jsp to redirect.jsp redirect.jsp could have an encoding tag The first one, is a view for for the controller that contains html source. I'll add encodings then attach diffs to see if the changes look correct
Created attachment 57390 [details] index.jsp and bundle file with encodings
Created attachment 57391 [details] diffs of index.jsp and bundle file with encodings
Reporter, please verify diffs of http://www.netbeans.org/nonav/issues/showattachment.cgi/57391/128595.diff to see if this is correct
The index.jsp is like a placeholder view Users can create their own JSP files using the New->File-Web-JSP file type dialog and these JSP files do have an encoding preset.
See desc7 If not correct, please explain and reopen
Product Version: NetBeans IDE 6.1 Beta (Build 200803041230) Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b05 System: Windows XP version 5.1 running on x86; MS932; ja_JP Project encoding: UTF-8 User-created jsp files looks ok. They have encoding tag. index.jsp has bad multibyte characters: see image. there is no encoding tag in redirect.jsp
Created attachment 57907 [details] index.jsp from the beginning
Created attachment 57908 [details] index.jsp at the end
whoops, I thought I had integrated the changes to use the encoding tag for redirect.jsp
Added encoding tags http://hg.netbeans.org/main/rev/d548b1d38c40
see the changeset from the previous comment
The problem exists in 0316 build. I will try to verify it with the next one.
I'll attach redirect.jsp and index.jsp (from yesterday's 3/20 build), yours should be the same
Created attachment 58867 [details] redirect.jsp (with encoding)
Created attachment 58868 [details] index.jsp (with encoding)
Build 0323, Ja locale, project encoding UTF-8 Encoding now exits in both files. But index.jsp has bad multibyte characters in it.
Created attachment 59188 [details] index.jsp editor
That's weird. The html source is in a bundle file and there shouldn't be any characters between the brackets as in <html><META I'll set my browser to another locale and check the Bundle file on UNIX
John, try to handle the file the same way I handled the XML files (by turning them into FreeMarker templates and putting ${project.encoding} in the encoding tag. Or just reassign to me if you don't have the cycles.
Should be fixed now http://hg.netbeans.org/main/rev/8e6c63e35175
verified in trunk 0406