Re: [S2] Displaying user entered values after failed type conversion while using getText()?

2011-11-17 Thread Li Ying
I have 2 suggestion: (A)Declare the input data field in your action as a String, instead of date or integer. So, the String field can hold anything input from client side. But this will be inconvenience to use, because you have to convert the string value to the date or integer value by yourself,

Re: Right way for exception handling

2011-11-17 Thread Li Ying
Hi, Ilya: > But struts-2 breaks this scheme. > > 1) it does not pass exception to container so container can't log it. I used struts2 for several years. In our projects, struts-2 does not break this schema. I have read the source of struts2. When an exception is thrown from action execution, str

Re: Message lookup (from key) in Test

2011-11-17 Thread Li Ying
Hi Miguel: How did you generate the error message? (A)Did you add the message key to the action errors, like: this.addActionError("error.authorisation"); (B)or did you retrieve the message text by the key, then add the text to the action errors, like: this.addActionError(this.getText("

Re: Will xwork-core-2.2.3.1.jar works for commons-lang3-3.1.jar

2011-11-17 Thread Maurizio Cucchiara
And right for that reason they can coexists, so if you want use lang3, just add it to your classpath Sent from my mobile device, so please excuse typos and brevity. Maurizio Cucchiara Il giorno 17/nov/2011 21.21, "Emi Lu" ha scritto: On 11/17/2011 03:04 PM, Emi Lu wrote: > > Hello, > > I rememb

Re: Will xwork-core-2.2.3.1.jar works for commons-lang3-3.1.jar

2011-11-17 Thread Emi Lu
On 11/17/2011 03:04 PM, Emi Lu wrote: Hello, I remembered that xwork2.2.3 does not support commons-lang3-3.0.1.jar, so use commons-lang-2.6.jar. Just want to remind the reason: depend on “org/apache/commons/lang/StringUtils”; while the new jar shows “org/apache/commons/lang3/StringUtils”

Will xwork-core-2.2.3.1.jar works for commons-lang3-3.1.jar

2011-11-17 Thread Emi Lu
Hello, I remembered that xwork2.2.3 does not support commons-lang3-3.0.1.jar, so use commons-lang-2.6.jar. Apache just published a new version lang jar. Does someone know for this newer version, will xwork-core-2.2.3.1.jar + common_lang_3.1 work together? Thanks a lot! Emi On 11/15/2011 04:

RE: provide Helloworld application in Struts2.0

2011-11-17 Thread Dave Newton
Is there anything in your startup logs? This could help things go more quickly. On Nov 17, 2011 12:21 PM, "Praveen Jain" wrote: > > Dear > Ilya Kazakevich, > > Thanks for your help in making my application I am providing you the > required details . > > Currently I am using > > 1) Java Version

RE: provide Helloworld application in Struts2.0

2011-11-17 Thread Praveen Jain
Dear  Ilya Kazakevich,  Thanks for your help in making my application I am providing you the required details . Currently I am using  1) Java Version  "jdk1.5.0_05"    2) Tomcat version  "Tomcat 5.0"  2) Struts Version 2.0   3) Yes in  Endorse Folder of Tomcat I have two jar files named  xerc