[struts2.1.6] Type conversion error.

2009-02-23 Thread EoneZhang
Dear All. I use struts2.1.6 in a demo app. but I consult a problem with type conversion. the following is my source.(just the struts2 blank app,and just a little modifications) Login.java(I just modified the type of "password" to Bigdecimal. public class Login extends ExampleSupport { p

Re: [Help]: Struts2 List object validation

2008-11-24 Thread EoneZhang
mplement Validateable in your > action object. That way you can have very complex validation rules. > Also allows you not keep track of another 'validation' file! > > On 11/24/08, EoneZhang <[EMAIL PROTECTED]> wrote: >> >> Now I suffer a problem with s2'

[Help]: Struts2 List object validation

2008-11-24 Thread EoneZhang
Now I suffer a problem with s2' validation. Here is my problem: In my action,there is a property List persons; now in jsp, I use iterator like below: I want to validation user input while submit the form, “name" should not empty, and "age" must be number. in my validation confi

[HELP]: struts tag and OGNL

2008-11-23 Thread EoneZhang
Hi, everyone. I have something wrong about the usage of struts tag and OGNL. Here is my problem: I want to generate the following html with tag: I use the tag like following: But it generate the below html: Is there anyone who can give some help,thanks a l