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 151665

Summary: I18N : Need additional steps in Spring tutorial for i18n use
Product: javaee Reporter: Masaki Katakai <masaki>
Component: SpringAssignee: issues@javaee <issues>
Status: RESOLVED WONTFIX    
Severity: blocker CC: jf4jbug
Priority: P3 Keywords: I18N
Version: 6.x   
Hardware: All   
OS: All   
URL: http://www.netbeans.org/kb/61/web/quickstart-webapps-spring.html
Issue Type: ENHANCEMENT Exception Reporter:

Description Masaki Katakai 2008-10-29 07:44:10 UTC
I got messages from Japanese community members that the tutorial
below is not working when user is using Japanese at the last step,
step 8, entering Japanese into Name: text field. The entered strings
are garbled.

  http://www.netbeans.org/kb/61/web/quickstart-webapps-spring.html
   (Japanese - http://www.netbeans.org/kb/61/web/quickstart-webapps-spring_ja.html)

To make this tutorial work in any environment including English,
I think we need to add org.springframework.web.filter.CharacterEncodingFilter
and specify the encoding e.g. UTF-8 like following,

<filter>
  <filter-name>org.springframework.web.filter.CharacterEncodingFilter </filter-name>
  <filter-class>org.springframework.web.filter.CharacterEncodingFilter </filter-class>
  <init-param>
    <param-name>encoding</param-name>
    <param-value>UTF-8</param-value>
   </init-param>
</filter>
<filter-mapping>
  <filter-name>org.springframework.web.filter.CharacterEncodingFilter </filter-name>
  <servlet-name>dispatcher</servlet-name>
  <dispatcher>REQUEST</dispatcher>
</filter-mapping>

These settings can be configured on GUI.

Is it possible to add these additional steps to the tutorial?
Also it's nice if some descriptions could be added in OLH too.
Comment 1 Martin Balin 2016-07-07 08:54:10 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss