if (this.isCancelled(request)) {
return mapping.findForward("cancel");
}
Joe
> -----Original Message-----
> From: Geeta Ramani [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 21, 2003 9:06 AM
> To: Struts Users Mailing List
> Subject: Re: Form Validation
>
>
> Justin:
>
> There is a html:cancel tag that you can use in your jsp which
> (according to the docs) will indeed bypass the validate
> method in the form bean and go directly to the action. In
> your perform/execute method all you need to do is say something like:
>
> if
> (request.getParameter("org.apache.struts.taglib.html.CANCEL")
> != null) {
> return mapping.findForward("cancel");
> }
>
> Btw, I am working with Struts 1.02, maybe there's an even
> slicker solution with 1.1..:)
>
> regards,
> Geeta
>
> "Justin F. Knotzke" wrote:
>
> > Hi,
> >
> > I'd like to know if future versions of struts will have
> the ability
> > to return the form, with it's contents back to the input page after
> > failing a validate.
> >
> > If I am going about it correctly, after performing a validate(),
> > and upon returning with ActionErrors, the form is returned empty to
> > the input page.
> >
> > The obvious 'workaround' is to put the form back into
> the request.
> >
> > But it would be nice if one didn't have to do this.
> >
> > It would also be nice if struts had a property which you
> could set
> > (say inside the taglib) to tell validate() to not actually
> validate,
> > depending on the submit (ie, the user hit "cancel" no need to
> > validate..
> >
> > Or is this already possible without having to code it by hand?
> >
> > Thanks
> >
> > Justin.
> >
> > --
> > Justin F. Knotzke
> > [EMAIL PROTECTED]
> > http://www.shampoo.ca
> >
> >
> ---------------------------------------------------------------------
> > 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]