"Casting" an empty String to a double will give you 0.0.
On 20040303 12:10 PM, "thomas Sontheimer" <[EMAIL PROTECTED]>
wrote:
> when I use the validator on the server side to validate a double the
> value is converted to 0.0 an no error is reported.
> has anyone meet that problem?
> I parsed the
Mike,
Take a look at the rendered HTML for the EnterTransForm and ensure that you
see:
It may be as simple as supplying the wrong arguments to in the
JSP.
John
On 20040303 11:00 AM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> Hi folks,
>
> I'm sorely confused. I'm getting a "java.lan
Sorry all,
Figured out the problem. Typo in the form definition .
Thanks.
John
On 20040302 12:12 PM, "John Fitzpatrick" <[EMAIL PROTECTED]> wrote:
> Richard,
>
> Thanks for the pointer to DynaValidatorForm. I can see how that would be
> more useful than D
o the test.
John
On 20040302 11:37 AM, "Richard Yee" <[EMAIL PROTECTED]> wrote:
> John,
> In your form, you should extend
> org.apache.struts.validator.DynaValidatorForm instead
> of org.apache.struts.action.DynaActionForm
>
> -Richard
>
>
> --- John Fit
Sorry for the repost, but I really am stuck on this. If anyone could help,
I'd appreciate it.
I'm having a problem setting up tests where errors are created during
validation by a DynaActionForm using MockStrutsTestCase. Here's my code:
The DynaActionForm:
===
package test;
I'm having a problem setting up tests where errors are created during
validation by a DynaActionForm using MockStrutsTestCase. Here's my code:
The DynaActionForm:
===
package test;
import javax.servlet.http.*;
import org.apache.struts.action.*;
public class Bogus
6 matches
Mail list logo