Re: findForward nto going to correct place

2004-09-28 Thread Yves Sy
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

Re: findForward nto going to correct place

2004-09-28 Thread Tom Holmes Jr.
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

Re: findForward nto going to correct place

2004-09-27 Thread Yves Sy
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

Re: findForward nto going to correct place

2004-09-26 Thread Tom Holmes Jr.
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

Re: findForward nto going to correct place

2004-09-26 Thread Pedro Salgado
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

Re: findForward nto going to correct place

2004-09-26 Thread Yves Sy
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