Hi,
validate=true forces Struts to call the validate method in the
ActionForm (or DynaValidatorForm) you wrote when your form is
submitted. Make sure what you put there are simple input validation
NOT business logic.
You set validate=false when you dont want the validate method to be called.
Reg
Hi Yves, I found out what the problem is. There was an error in my page
where it lists this other path/file. I was intrigued by your statement
about the validate=true. So, I started out with a much simpler page to
experiment with your statement. In that situation I made some simple
pahes t
Hi Tom,
Now you've got this all mixed up. You dont need to call:
ActionErrors errors = ((MemberNewForm)form).validate(mapping,request);
..in your Action class anymore because Struts will automatically call
validate for you when you submit your form and you specify
validate=true in your struts-co
Yves Sy wrote:
What do you mean "failure"? You explicitly return
mapping.findForward("failure")? Or do you mean when the validate
method in ActionForm fails?
Actually both, in my code when the validate is false, then it comes back
to the MemberAction controller and I do explicitity call:
return ma
To forward to the "failure" page try using mapping.getInputForward();
It is better than defining a failure forward everytime and is less
error-prone.
Pedro Salgado
On 26/9/04 4:11 pm, "Yves Sy" <[EMAIL PROTECTED]> wrote:
> What do you mean "failure"? You explicitly return
> mapping.findForw
What do you mean "failure"? You explicitly return
mapping.findForward("failure")? Or do you mean when the validate
method in ActionForm fails?
And what's the path of the page where you're being redirected?
-Yves-
On Sat, 25 Sep 2004 13:03:58 -0400, Tom Holmes Jr. <[EMAIL PROTECTED]> wrote:
> I'v
6 matches
Mail list logo