Or put this in your form:
<html:cancel/>
And this in your Action:
if (isCancelled(request))
return mapping.findForward("home");
-- Jim
"Galbreath, Mark" <[EMAIL PROTECTED]> writes:
> Try this:
>
> <html:cancel value="Cancel" onclick="javascript:location='/do/home'" />
>
> Mark
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 01, 2002 1:26 PM
>
> I have a form and it has a 'confirm' and a 'cancel' button. The 'confirm'
> button submits to the Action class. I'd like the 'cancel' button to
> redirect user to another Action, which has a global-forward named 'home'.
>
> Here's what I'm attempting...
>
> <html:submit property="irrelevant" value="Cancel"
> onclick="javascript:location.href='<html:rewrite forward="home"/>';"/>
>
> This does not work at all.
>
> Does anyone know how I could do this?
>
> Many thanks.
>
> Lindsay
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>