Re: Validator Skipping Action

2006-02-07 Thread Michael Jouravlev
On 2/7/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > On 2/7/06, Tom Ansley <[EMAIL PROTECTED]> wrote: > > I guess the big thing I do not understand here is why validator is being > > called when the form has not even had time to initialize. > > > > In my application I rely on the action.execut

Re: Validator Skipping Action

2006-02-07 Thread Michael Jouravlev
On 2/7/06, Tom Ansley <[EMAIL PROTECTED]> wrote: > I guess the big thing I do not understand here is why validator is being > called when the form has not even had time to initialize. > > In my application I rely on the action.execute() method being the first to > be called because it allows me to

Re: Validator Skipping Action

2006-02-07 Thread Tom Ansley
I guess the big thing I do not understand here is why validator is being called when the form has not even had time to initialize. In my application I rely on the action.execute() method being the first to be called because it allows me to prepopulate the form associated with the action. This mak

Re: Validator Skipping Action

2006-02-07 Thread Tom Ansley
Hey Dave, Referring to this: > path="/jsp/camper/addCamper.do" redirect="true"/> > The "path" attribute strikes me as being very suspicious, but you might just be doing something... unexpected with how your application is set up. Why does the path look a little suspicious to you? I was thinki

Re: Validator Skipping Action

2006-02-07 Thread Nick Sophinos
The initially easiest solution is to have a init version of that action. Note that it is a Forward Action, thus bypassing the need for a nearly empty backing Java class. ie: Alternatively, MappingDispatchAction is good here too, where one Action class can handle all cases, including the init case

Re: Validator Skipping Action

2006-02-07 Thread Tom Ansley
Hey Hubert, But how is anything going to ever validate correctly if I have not had time to initially populate the form. The action which is being skipped allows me to prepopulate the form before sending it to the user for them to add information. I get the feeling the workflow is something like

Re: Validator Skipping Action

2006-02-07 Thread Hubert Rabago
On 2/7/06, Tom Ansley <[EMAIL PROTECTED]> wrote: > > > > > type="com.camp.actions.camper.addCamperAction" > > > name="CamperForm" > > > scope="session" > > > validate="true" > > > parameter="submit" > > > input="/addCamper.jsp"> > > So, it's looking for getFirst

Re: Validator Skipping Action

2006-02-07 Thread Tom Ansley
Hey Nick, Here is an excerpt of my CamperForm: public final class CamperForm extends ValidatorForm { private Camper camper = null; public String getLastName() { return camper.getLastName(); } public String getFirstName() { return camper.getFirstName(); } He

Re: Validator Skipping Action

2006-02-07 Thread Dave Newton
Tom Ansley wrote: > Does validator somehow alter the work flow in struts? Only that it will return to the "input" attribute on a validation error. > My action doesn't get completely skipped because it does attempt to load a > jsp page, but I have no idea how it gets this jsp page and why it doesn'

Re: Validator Skipping Action

2006-02-07 Thread Nick Sophinos
I guess that the big question is: "What about CamperForm?, what does it look like?" If it is a Java class that you created, what does the validate() method look like? If it is a DynaValidatiorForm (make sure that it is not a DynaActionForm), what does the XML look like? - Nick On 2/7/06, Tom An