RE: 2 ApplicationResources.properties file

2012-06-29 Thread Martin Gainty
Hi Sam to acquire Locale Specific textcall findDefaultText populating string to find as first parameter the intended Locale as second parameter for example com.opensymphony.xwork2.util.LocalizedTextUtil.findDefaultText("default.testmessage", locale) Martin _

Re: Struts Tag Iterator formatting issue using tables

2012-06-29 Thread Dave Newton
Two issues: form elements with no form, and using the default xhtml theme, where form element tags include table rows/cells. You may want to use the "simple" theme, or create/extend a theme. Note the simple theme doesn't emit field errors. Dave (pardon brevity and typos, on cell) On Jun 29, 201

RE: Struts Tag Iterator formatting issue using tables

2012-06-29 Thread Martin Gainty
try this package org.apache.struts2.example;public class Bean { protected String FullName; protected String Title;} Martin __ Verzicht und Vertraulichkeitanmerkung Diese Nachricht ist vertraulich. Sollten S

Re: 2 ApplicationResources.properties file

2012-06-29 Thread s
Got the answer -Original Message- From: "s" [srrem...@excite.com] Date: 06/29/2012 02:01 PM To: user@struts.apache.org Subject: 2 ApplicationResources.properties file I am working on an application and it has 2 modules. I need to create 2 seperate ApplicationResources.properties file

2 ApplicationResources.properties file

2012-06-29 Thread s
I am working on an application and it has 2 modules. I need to create 2 seperate ApplicationResources.properties file for each module. This properties files should by loaded by Struts 2 automatically (without any code). Is there any way to achieve this in Struts 2 ...? --Sam ---

Re: Issue with Chinese Charctors - FIXED :)

2012-06-29 Thread Maurizio Cucchiara
AFAIK You'd need to define per single tag, also, be aware that escape works as input sanitizer, and by disabling the escape you could encounter security issue. Twitter :http://www.twitter.com/m_cucchiara G+ :https://plus.google.com/107903711540963855921 Linkedin:http://www.linkedi

RE: Struts 1: two forms in a jsp possible?

2012-06-29 Thread Martin Gainty
Hi Lucas its been at least 5 years since Ive touched struts-1 but i'm fairly certain there is separate Bean Java class you need to code which corresponds to name="ObjectForm" from the referenced Date: Fri, 29 Jun 2012 14:03:52 +0200 > Subject: Struts 1: two forms in a jsp possible? > From: sr.i

Re: Issue with Chinese Charctors - FIXED :)

2012-06-29 Thread Sathish Kumar
Sorry .. it was application issue this fix works . thanks all for your valuable suggesion ... Hi Maurizio ... just one optimization .. is it possible to set escaping attribute value globally .. or do i ned to override all struts 2 tags in my theme ( my case it is xhtml ) On Fri, Jun

Re: Issue with Chinese Charctors

2012-06-29 Thread Sathish Kumar
Wav i did this and it shows proper Chinese text in struts 2 text box [@s.textfield name="entity.label" key="label" escape="true"/] But then :( now i get junk characters in plain HTML places where i use these labels is it possible to set this escaping flag from action so that we set escaping

Re: Issue with Chinese Charctors

2012-06-29 Thread Maurizio Cucchiara
This is the escape attribute (true by default), and what you see should be the html encoding for the corresponding encoded value. Try to set escape to false Sent from my mobile device, so please excuse typos and brevity. Maurizio Cucchiara Il giorno 29/giu/2012 12.56, "Sathish Kumar" < sathishkum

RE: Issue with Chinese Charctors

2012-06-29 Thread Martin Gainty
this issue was reported a ways back http://mail-archives.apache.org/mod_mbox/struts-user/201002.mbox/%3c53ee77ab1002070842x50988007h61fc91dee0239...@mail.gmail.com%3E something to check:0)be sure use a charset which will support your locale (zh)..be mindful of DBCS support 1)set locale to chines

Re: Issue with Chinese Charctors

2012-06-29 Thread Sathish Kumar
Hi Dave & Maurizio, Thanks a lot for such a quick response !!! I applied below properties in struts and freemarker configurations struts.properties -- struts.i18n.encoding=UTF-8 freemarker.properties default_encoding=UTF-8 template_update_delay=5

Re: Issue with Chinese Charctors

2012-06-29 Thread Maurizio Cucchiara
IIRC there is a way to configure encoding inside freemarker.properties. >From the struts side there is also a struts.i18n.encoding properties which might be useful. Twitter :http://www.twitter.com/m_cucchiara G+ :https://plus.google.com/107903711540963855921 Linkedin:http://www.l

Re: Issue with Chinese Charctors

2012-06-29 Thread Dave Newton
On Fri, Jun 29, 2012 at 6:35 AM, Sathish Kumar wrote: > In our struts 2 project, we support Chinese language. While we save Chinese > text in forms we see junk characters getting saved. > > While investigating, we found this link > > http://www.mkyong.com/struts2/struts-2-chinese-localization-issu