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 145320 - I18N - index.jsp file in Struts Web App doesn't have encoding tag
Summary: I18N - index.jsp file in Struts Web App doesn't have encoding tag
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Struts (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: _ potingwu
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2008-08-27 16:03 UTC by kaa
Modified: 2008-09-04 18:34 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kaa 2008-08-27 16:03:09 UTC
Product Version: NetBeans IDE Dev (Build 200808240201)
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 Struts 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.
Comment 1 _ potingwu 2008-08-28 00:00:39 UTC
"index.jsp" here is just for <jsp:forward page...> without any contents and hence not that important to have encoding
setting. I will fix it soon.
Comment 2 Quality Engineering 2008-08-28 06:28:12 UTC
Integrated into 'main-golden', available in build *200808280201* on http://bits.netbeans.org/dev/nightly/
Changeset: http://hg.netbeans.org/main/rev/0d8e3680b7ed
User: potingwu@netbeans.org
Log: Fix Issue#145320, P2, I18N - index.jsp file in Struts Web App doesn't have encoding tag.
Comment 3 _ potingwu 2008-08-28 17:31:46 UTC
Fixed in the trunk,

changeset 0d8e3680b7ed in main
details: http://hg.netbeans.org/main?cmd=changeset;node=0d8e3680b7ed

It now generates index.jsp as ("UTF-8" not hard-coded, locale dependent):
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    
    <jsp:forward page="Welcome.do"/>
Comment 4 kaa 2008-09-04 18:34:56 UTC
verified: build 0831
The tag exists with the project encoding value