Re: validating double causes no error on text entry

2004-03-03 Thread John Fitzpatrick
"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

Re: No bean specified exception when submitting a form

2004-03-03 Thread John Fitzpatrick
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

Re: [REPOST] MockStrutsTestCase problem

2004-03-02 Thread John Fitzpatrick
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

Re: [REPOST] MockStrutsTestCase problem

2004-03-02 Thread John Fitzpatrick
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

[REPOST] MockStrutsTestCase problem

2004-03-02 Thread John Fitzpatrick
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;

MockStrutsTestCase problem

2004-02-27 Thread John Fitzpatrick
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