Why don't you just use <html:cancel> instead of setting name manually into generic input element?
<html:cancel> tag submits "org.apache.struts.taglib.html.CANCEL" as request parameter. Then RequestProcessor checks for "org.apache.struts.taglib.html.CANCEL" request key and sets "org.apache.struts.action.CANCEL" (that is, Globals.CANCEL_KEY) attribute, which is checked by Action.isCancelled() Apparently, keys are different because of historical reasons, when packages were developed separately. Should not new Struts version clear this up? On 5/4/05, Durham David R Jr Ctr 805 CSPTS/SCE <[EMAIL PROTECTED]> wrote: > 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]