Validator validates too early (was RE: Validator won't validate single required field)

2003-01-24 Thread Wendy Smoak
You wouldn't want to hit the JSP first anyways ;-). It was suggested by another person here and I just wanted to rule it out in case it was your next suggestion. :) I believe both of your thoughts will work but I would try the separate action mapping idea first. I did, and it works,

Re: Validator validates too early (was RE: Validator won't validate single required field)

2003-01-24 Thread Micha Postupalski
On 1/24/2003 11:49 PM, Wendy Smoak wrote: /*only validate if the form has actually been submitted. We can tell this by checking to see if the Submit button is in the request */ if (request.getParameter(Submit) != null) { return super.validate(

Re: Validator validates too early (was RE: Validator won't validate single required field)

2003-01-24 Thread Micha Postupalski
Interesting... would equalsIgnoreCase be more appropriate, or are you sure it'll always be in upper case? My jsp currently has: html-el:form action=/chooseProfile which turns into: form name=chooseProfileForm method=post action=/bendev/chooseProfile.do so I'm guessing that 'post' will be

Re: Validator validates too early (was RE: Validator won't validate single required field)

2003-01-24 Thread Micha Postupalski
because request.getMethod() returns HTTP method and request.getMethod().toString() is always uppercase sorry, my mistake, request.getMethod().toString() is a nonsense because request.getMethod() is type of java.lang.String.I'm too sleepy ;-((( plastic -- To unsubscribe, e-mail: