Re: Custom validation with Struts2

2008-09-10 Thread Priyanka.dandekar
();     }   } Thanx a lot. Best regards, Filippov Andrey -- View this message in context: http://www.nabble.com/Custom-validation-with-Struts2-tp16115973p19425117.html Sent from the Struts - User mailing list archive at Nabble.com

Re: Custom validation with Struts2

2008-09-10 Thread Dave Newton
...);     }   }     } catch (Exception e) {   e.printStackTrace();     }   } Thanx a lot. Best regards, Filippov Andrey -- View this message in context: http://www.nabble.com/Custom-validation

Custom validation with Struts2

2008-03-18 Thread Filippov, Andrey
Hello everybody, I need to validate only 1 field on the jsp. It value should be between 1 and 99. Initially I started to implement through int validation but it seemed to go wrong - it works with some limitation - maximum value should not exceed 1000 or something like that. I am trying

Re: Custom validation with Struts2

2008-03-18 Thread Lukasz Lenart
request = ServletActionContext.getRequest(); String tmp = ; try { tmp = request.getParameter(cardNo); Integer i = this.getCardNo(); if (tmp != null tmp.length() 0) {

RE: Custom validation with Struts2

2008-03-18 Thread Filippov, Andrey
, March 18, 2008 11:09 AM To: Struts Users Mailing List Subject: Re: Custom validation with Struts2 request = ServletActionContext.getRequest(); String tmp = ; try { tmp = request.getParameter(cardNo); Integer i

Re: Custom validation with Struts2

2008-03-18 Thread Lukasz Lenart
I'm not sure were is the problem but I've just checked such simple example below and everything is ok. Maybe you should consider to use Long instead of Integer, because when you enter more then 2147483647 to the field you will get some strange value back to the input (because you loose precision

Re: Custom validation with Struts2

2008-03-18 Thread Laurie Harper
Lukasz Lenart wrote: I'm not sure were is the problem but I've just checked such simple example below and everything is ok. Maybe you should consider to use Long instead of Integer, because when you enter more then 2147483647 to the field you will get some strange value back to the input