Vikrant:
Here I am able to validate for not null fields. But I also
want to validate
it for the field if not null should be numeric. How Can I do this??
Please Suggest me possible solution in order to validate both things.
Have you tried making your fields int instead of String?
If I am declaring it as int how should I check for null. Can u explain me
please?
--
View this message in context:
http://old.nabble.com/Struts2-Multiple-validation-for-single-field-tp26373102p26373588.html
Sent from the Struts - User mailing list archive at Nabble.com.
Ya Now its working fine. I am running this application on jboss server. While
the application is running I am getting lot of errors in the console such as
follows:-
Any suggestions Please in order Not to get such kind of errors
20:50:58,950 WARN [OgnlValueStack] Error setting value
Vikrant:
If I am declaring it as int how should I check for null.
OK, I think I see what you are asking.
If you change your field to an int field and the
user does not fill in the value, you will
get zero. If they put in zero, you will get zero
and there is no way to tell the difference.
Is
Vikrant:
20:50:58,950 WARN [OgnlValueStack] Error setting value
ognl.MethodFailedException: Method setLoad failed for object
com.tcs.infra.workload.remoteclientact...@161ef9c
This is no big deal since it is just a warning.
If you want to keep your field as an int, you can
implement a method
Thanks Niel For Your Help
--
View this message in context:
http://old.nabble.com/Struts2-Multiple-validation-for-single-field-tp26373102p26373908.html
Sent from the Struts - User mailing list archive at Nabble.com.
-
To
6 matches
Mail list logo