It sounds like this may be corrupted in AppFuse. For the Struts 2 WAR, we have the following configuration - this is likely what you'll need in order for errors*.properties to get processed correctly. I don't know how "war:inplace" handles this, but you'd think it would recognize it.
<plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>native2ascii-maven-plugin</artifactId> <version>1.0-alpha-1</version> <configuration> <dest>target/classes</dest> <src>src/main/resources</src> </configuration> <executions> <execution> <id>native2ascii-utf8</id> <goals> <goal>native2ascii</goal> </goals> <configuration> <encoding>UTF8</encoding> <includes>errors_zh*</includes> </configuration> </execution> <execution> <id>native2ascii-8859_1</id> <goals> <goal>native2ascii</goal> </goals> <configuration> <encoding>8859_1</encoding> <includes> errors_de.properties, errors_fr.properties, errors_nl.properties, errors_pt*.properties, errors_tr.properties </includes> </configuration> </execution> </executions> </plugin> </plugins> <resources> <resource> <directory>src/main/resources</directory> <excludes> <exclude>errors_zh*.properties</exclude> <exclude>errors_de.properties</exclude> <exclude>errors_fr.properties</exclude> <exclude>errors_nl.properties</exclude> <exclude>errors_pt*.properties</exclude> <exclude>errors_tr.properties</exclude> </excludes> <filtering>true</filtering> </resource> </resources> Matt On 4/23/07, Struts2 Fan <[EMAIL PROTECTED]> wrote:
:) You are right but I have a problem with Turkish characters :) When I change the errors_tr.properties in the target/.../WEB-INF/classes as you said the message seems wrong again. It doesn't show the "ı" character correct. For this in appfuse it is written with unicode. The bundles in target/../WEB-INF/classes/errors_tr.properties errors.required=${getText(fieldName)} alan\u00c4\u00b1 doldurulmas\u00c4\u00b1 gerekli bir alan. The message is shown like that "${getText(fieldName)} alaný doldurulmasý gerekli bir alan." When I put a file named errors_tr.properties file under the resources dir now it prints "?" character for Turkish character "ı". "${getText(fieldName)} alan? doldurulmas? gerekli bir alan." I hope you will understand know. I only want the error messages to print out Turkish characters correctly ( for example "ı") -- View this message in context: http://www.nabble.com/RequiredString-message-in-struts2-tf3632490s2369.html#a10144834 Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- http://raibledesigns.com