You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by de...@ltp.soft.net on 2005/05/04 22:52:45 UTC
Re: html:cancel
Try using
<html-el:cancel/>
or
<input name="org.apache.struts.taglib.html.CANCEL" value="<fmt:message
key="form.cancel"/>" onclick="bCancel=true;" type="submit">
> I've got a jsp chunk like this:
>
> <input type="submit" name="<%= Globals.CANCEL_KEY %>"
> value="<fmt:message key="form.cancel"/>">
>
>
> And this code in an action:
>
> if (isCancelled(request)) {
> // do something
> }
>
> When I click cancel, isCancelled(request) returns false. Checking the
> Action.isCancelled() method reveals that it looks for a request
> attribute not a request parameter. That doesn't seem right to me.
> Anyone care to shed some light on this. Maybe I'm missing something
> obvious.
>
> Thanks,
>
> DAve
>
> --------------------------------------------------------------------- To
> unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org