<action path="/note/edit"
name="NoteForm"
validate="false"
input="/note/get.do"
type="com.socotech.loanauditor.web.note.EditNoteAction"
parameter="mode"
scope="request">
<forward name="refreshed" path="editNote" redirect="false" />
<forward name="added" path="viewNote" redirect="false" />
<forward name="updated" path="viewNote" redirect="false" />
<forward name="error" path="reportError" redirect="false" />
</action>
<action path="/note/get"
name="NoteForm"
validate="false"
type="com.socotech.loanauditor.web.note.GetNoteAction"
parameter="mode"
scope="request">
<forward name="add" path="editNote" redirect="false" />
<forward name="audit" path="viewNote" redirect="false" />
<forward name="view" path="viewNote" redirect="false" />
<forward name="update" path="editNote" redirect="false" />
<forward name="error" path="reportError" redirect="false" />
</action>
> -----Original Message-----
> From: Nimish Chourey , Tidel Park - Chennai
> [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 10, 2003 6:21 AM
> To: Struts Users Mailing List
> Subject: RE: ValidatorForm losing params when validation fails
>
>
> Yes .. It makes sense ..
>
> Can u post the action mapping in the struts config .. That may give some
> clue
>
> -----Original Message-----
> From: Marc Dugger [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 10, 2003 5:33 PM
> To: Struts Users Mailing List
> Subject: RE: ValidatorForm losing params when validation fails
>
>
> My mapping specifies 'validate="false"' because I have a method in the
> DispatchAction, called refresh(mapping, form, request, response) which
> adjusts the size of indexed properties in the Form and returns the user to
> the same page. I do not want the form to be validated when
> refresh(mapping,
> form, request, response) is called, but I do want validation when
> the other
> methods (i.e. add, update) on the DispatchAction are called. Make sense?
>
> > -----Original Message-----
> > From: Nimish Chourey , Tidel Park - Chennai
> > [mailto:[EMAIL PROTECTED]
> > Sent: Sunday, November 09, 2003 10:50 PM
> > To: Struts Users Mailing List
> > Subject: RE: ValidatorForm losing params when validation fails
> >
> >
> > The validate method of the form would be called before the execute
> > method of action ..
> > Why do you have to call the form.validate(mapping, request)
> explicitly , I
> > doth think this code in acton would be executed if the validation
> > fails ...
> >
> >
> > -----Original Message-----
> > From: Marc Dugger [mailto:[EMAIL PROTECTED]
> > Sent: Monday, November 10, 2003 6:45 AM
> > To: [EMAIL PROTECTED]
> > Subject: ValidatorForm losing params when validation fails
> >
> >
> > The following code fragment is used in a DispatchAction and when the
> > validation fails, the input form is returned unpopulated because all
> > my form fields lose the data that was originally sent with the
> > request:
> >
> > ActionErrors errors = form.validate(mapping, request);
> > if (!errors.isEmpty()) {
> > saveMessages(request, errors);
> > return mapping.getInputForward();
> > }
> >
> > My form extends ValidatorForm and I have not overridden reset(). Why
> > is the form losing it's parameters? Thanks in advance.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]