();
}
}
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
...);
}
}
} catch (Exception e) {
e.printStackTrace();
}
}
Thanx a lot.
Best regards, Filippov Andrey
--
View this message in context:
http://www.nabble.com/Custom-validation
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
request = ServletActionContext.getRequest();
String tmp = ;
try {
tmp = request.getParameter(cardNo);
Integer i = this.getCardNo();
if (tmp != null tmp.length() 0) {
, 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
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
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
7 matches
Mail list logo