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
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
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
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
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
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
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
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
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'
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
10 matches
Mail list logo