On a related note.

I would like to specify something like this:

A field with validwhen condition that (*this* <= 12.5)

When I use the above code in my validation.xml, I get an error:

ValidWhen Error for field '
clientaSurvivorsIncomeFundRateOfReturnAfterDeath' - line 1:15: expecting
RPAREN, found '.5'

Any suggestions,
Harsh.

-----Original Message-----
From: Chaudhary, Harsh 
Sent: Thursday, June 01, 2006 11:59 AM
To: Struts Users Mailing List
Subject: RE: Where do you submit bug reports for struts?


I had actually posted this a few days back and received a response, but
I could not solve this problem. Here it is again.

1. This has to do with the "validwhen" validations. Especially when used
with "float" as defined in validation.xml.
Scenario: I have a field which is validated as follows:
- It is a float.
- It has to be > 0.

When I input 0, the validation works correctly i.e. I get an error. But
when I input 0.0, the validation does not raise an error.

My thought is that there is a problem with the way the <var> for the
"validwhen" is parsed.

2. Another place where I see somewhat similar behavior is as follows.
Scenario: I have a field which is validated as follow:
- It is a float
- It has to <= 12

When I input something like 4, it goes through fine i.e. I don't get an
error. But when I input something like 4.5 or 4.7 or 5.3 (basically
numbers with decimal points), I get an error.


Any suggestions would be appreciated,
Harsh.


-----Original Message-----
From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 01, 2006 11:22 AM
To: Struts Users Mailing List
Subject: Re: Where do you submit bug reports for struts?


On 6/1/06, Chaudhary, Harsh <[EMAIL PROTECTED]> wrote:
> I would like to report a couple of bugs I have found in Struts
> Validation. I am pretty sure they are not Commons validator problems.
> Does anyone know where I could file a bug.

If you haven't already, post your question to the list and see if
anyone can spot the problem.

Once you're sure it's a bug, you can file it at
http://issues.apache.org/struts

-- 
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to