commons-user mailing list archives

GenericValidator is a java file in the package org.apache.commons.validator
It has the method defined as:
public static boolean minLength(String value, int min)
Now I want to use this in built method for doing the minimum length
validation for one of my field, say, firstName.
The problem is, it takes String and int as parameters
While I am passing
methodParams="java.lang.Object,org.apache.commons.validator.Field" in my
validator.xml
I can pass java.lang.String, but how to pass an integer from validator.xml ?
-----Original Message-----
From: HIMANSHU MALL [mailto:Himanshu.Mall@hcl.in]
Sent: Monday, January 21, 2008 5:33 PM
To: Jakarta Commons Users List
Subject: RE: Minimum Length validation
Hi Beejal
How do u do?
What you actually want to achieve? And what is this
GenericValidator.java?
-----Original Message-----
From: Beejal [mailto:beejal.kamdar@patni.com]
Sent: Monday, January 21, 2008 5:24 PM
To: user@commons.apache.org
Subject: Minimum Length validation
Hi All,
I would like to know how can I do the minimum length validation for a
field
using minLength(String value, int n) method of the GenericValidator.java
Thanks
Regards,
Beejal
http://www.patni.com
World-Wide Partnerships. World-Class Solutions.
_____________________________________________________________________
This e-mail message may contain proprietary, confidential or legally
privileged information for the sole use of the person or entity to
whom this message was originally addressed. Any review, e-transmission
dissemination or other use of or taking of any action in reliance upon
this information by persons or entities other than the intended
recipient is prohibited. If you have received this e-mail in error
kindly delete this e-mail from your records. If it appears that this
mail has been forwarded to you without proper authority, please notify
us immediately at netadmin@patni.com and delete this mail.
_____________________________________________________________________
DISCLAIMER:
----------------------------------------------------------------------------
-------------------------------------------
The contents of this e-mail and any attachment(s) are confidential and
intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its
affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect
the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification,
distribution and / or publication of
this message without the prior written consent of the author of this e-mail
is strictly prohibited. If you have
received this email in error please delete it and notify the sender
immediately. Before opening any mail and
attachments please check them for viruses and defect.
----------------------------------------------------------------------------
-------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org
http://www.patni.com
World-Wide Partnerships. World-Class Solutions.
_____________________________________________________________________
This e-mail message may contain proprietary, confidential or legally
privileged information for the sole use of the person or entity to
whom this message was originally addressed. Any review, e-transmission
dissemination or other use of or taking of any action in reliance upon
this information by persons or entities other than the intended
recipient is prohibited. If you have received this e-mail in error
kindly delete this e-mail from your records. If it appears that this
mail has been forwarded to you without proper authority, please notify
us immediately at netadmin@patni.com and delete this mail.
_____________________________________________________________________