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 77915 - i18n - Struts Action with multibyte problem
Summary: i18n - Struts Action with multibyte problem
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Struts (show other bugs)
Version: 5.x
Hardware: All Windows XP
: P2 blocker (vote)
Assignee: Petr Pisl
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2006-06-14 16:16 UTC by Pavel Rehak
Modified: 2006-07-27 15:36 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot (157.10 KB, image/jpeg)
2006-06-14 16:16 UTC, Pavel Rehak
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pavel Rehak 2006-06-14 16:16:23 UTC
Product Version         = NetBeans 5.5 Dev (Build 200606090200)
  Operating System        = Windows XP version 5.1 running on x86
  Java; VM; Vendor; Home  = 1.5.0_07; Java HotSpot(TM) Client VM 1.5.0_07-b02;
Sun Microsystems Inc.; F:\Java\jdk1.5.0_07\jre
  System Locale; Encoding = ja_JP (nb); MS932
---
using pseudolocalized jappanise netbeans
following qa-j2ee testspecs :
http://qa.netbeans.org/modules/webapps/promo-f/frameworks/struts-user-scenario.html
step 3.2
when i tried create New | File | Web | Struts Action 
(i've created file named とLoginForm)
but in 3rd step of there is "?" instead of multibyte
(see attachment)
also in generated struts-config.xml there is
instead of multi-byte only "?".
<action input="/とlogin.jsp" name="?LoginForm" path="/Login/Verify"
scope="request" type="com.mycompany.eshop.struts.actions.とLoginVerifyAction"/>

on run project i get:
org.apache.jasper.JasperException: クラス
com.mycompany.eshop.struts.forms.?LoginForm のbeanを生成する際の例外: {1}
Comment 1 Pavel Rehak 2006-06-14 16:16:53 UTC
Created attachment 31056 [details]
screenshot
Comment 2 Petr Pisl 2006-06-20 17:31:39 UTC
I will fix this. 
Comment 3 Petr Pisl 2006-06-28 11:50:18 UTC
The problem is that the struts-config.xml file had ISO-8859-1 encoding by
default. When schema2beans writes the tree to the configuration file, then it
doesn't check the encoding. The fix is simple just generate the
struts-config.xml file with UTF-8 encoding by default. For the schema2beans
issue I entered different issue #79323.

IDE:-------------------------------------------------
IDE: [6/28/06 12:31 PM] Committing "resources" started
Checking in struts-config.xml;
/cvs/web/struts/src/org/netbeans/modules/web/struts/resources/struts-config.xml,v
 <--  struts-config.xml
new revision: 1.2.4.2.2.1; previous revision: 1.2.4.2
done
Checking in tiles-defs.xml;
/cvs/web/struts/src/org/netbeans/modules/web/struts/resources/tiles-defs.xml,v 
<--  tiles-defs.xml
new revision: 1.2.4.1.2.1; previous revision: 1.2.4.1
done
Checking in validator-rules.xml;
/cvs/web/struts/src/org/netbeans/modules/web/struts/resources/validator-rules.xml,v
 <--  validator-rules.xml
new revision: 1.2.4.3.2.1; previous revision: 1.2.4.3
done
Checking in validation.xml;
/cvs/web/struts/src/org/netbeans/modules/web/struts/resources/validation.xml,v 
<--  validation.xml
new revision: 1.2.4.1.2.1; previous revision: 1.2.4.1
done
IDE: [6/28/06 12:31 PM] Committing "resources" finished
Comment 4 Pavel Rehak 2006-07-27 15:36:12 UTC
Verified