Re: struts validation framework

2005-07-15 Thread Sivakumar Santharam
Joe Germuska Germuska.com> writes: > > At 12:14 PM -0700 7/14/05, Jay Burgess wrote: > >Yes. It's because the leading zero is saying the numbers are > >"octal", so 01-07 > >are valid octals, 08-09 are invalid octals, and 10-12 are valid octals. > > Jay's exactly right here. Your options: >

struts validation framework

2005-07-14 Thread Sivakumar Santharam
I am trying to restrict a field input value between 1 and 12. The user has to enter like 01 or 02.. thro 12. The validation fails if I enter 08 or 09 and for all other values from 01 thro 07 and 10 thro 12, it works fine. Again the problem is only if I enable javascript validation. Did anybody

Re: error comparing date fields using validwhen

2005-03-17 Thread Sivakumar Santharam
Niall, I imported the struts 1.2.6 build jar files and I am getting the same error. The fields have dates in mm/dd/ format. Do struts perform String comparision always even if the form field value is of different kinds? I am trying to compare two date fields and how does struts know? I am con

error comparing date fields using validwhen

2005-03-16 Thread Sivakumar Santharam
There are two fields in the form.I tried to use validwhen to validate one of against the others like below. test ((*this* > startDate)) Basically I am trying to throw an error if the end date is greater than the start date. Even though I have included the client side validat

Re: validation issue

2005-03-10 Thread Sivakumar Santharam
Hi If you define validate=false in the struts config file then your form will not be validated when you click either PREV or NEXT buttons. Then if you want to validate on clicking the NEXT button, you can validate the form by explicitely calling the validate method like ActionErrors errors= for

Re: problem in custom validation method

2005-03-04 Thread Sivakumar Santharam
Niall Pemberton blueyonder.co.uk> writes: > > The validation method signatures in Struts 1.2 changed from ActionErrors to > ActionMessages, but it looks like you're trying to use a Struts 1.1 format > method with Struts 1.2. > > Try changing your method signature to use ActionMessages. > > Nia

Re: problem in custom validation method

2005-03-04 Thread Sivakumar Santharam
Niall Pemberton blueyonder.co.uk> writes: > > Probably the best place to look is the "upgrade notes" page in the wiki. > Unfortunately this issue wasn't on it, so I've just added a note about it. > > http://wiki.apache.org/struts/StrutsUpgradeNotes11to124 > > Niall > > - Original Message

Re: problem in custom validation method

2005-03-03 Thread Sivakumar Santharam
> On 2005-03-03 14:28:52 -0500, Sivakumar Santharam gmail.com> said: > > > I am using struts 1.2.4 I created a new custom validation method in a > > validator class. I added a new validation rule to the > > validator-rules.xml file and new validation definitions to t

problem in custom validation method

2005-03-03 Thread Sivakumar Santharam
I am using struts 1.2.4 I created a new custom validation method in a validator class. I added a new validation rule to the validator-rules.xml file and new validation definitions to the validation.xml file. I get the following error when the custome validation method is called. When I tried to

Transfering data from a result set using reflection and metadata

2005-02-28 Thread Sivakumar Santharam
I am trying to use reflection and metadata to transfer data from a result set into a bean. I just followed the instructions provided at http://husted.com/struts/catalog.html. Eventhough the result set returns a row, the values are not set in the bean after the BeanUtils.populate(bean, propertie