On 3/6/07, Christopher Schultz <[EMAIL PROTECTED]> wrote:

Niall,

Niall Pemberton wrote:
> You pretty much have it - the point at which the value submtted by the
> tag is converted to Globals.CANCEL_KEY is in the RequestProcessor's
> processPopulate() method.

I don't see that code, though.

See line 800 here: http://tinyurl.com/yqfok2

> Having said that, Struts 1.3.5 uses the new ComposableRequestProcessor
> which replaces all that RequestProcessor functionality with a set of
> Commands and its taken care of in the Command
> AbstractPopulateActionForm in the handleCancel() method.

I have upgraded to 1.3.5, so I'll check out the handleCancel method.

http://tinyurl.com/yt7uky

I'm still not sure what the best way to do this is, though. In the
interim, I have created a "dummyForm" that contains no fields and no
validation. I use this to force proper "cancel" handling, because I feel
like it is less hacky than overriding Action.isCancelled to check for
the JSP-specific parameter name.

Any thoughts on that?

I haven't looked at doing this, but writing a Command which sets the
cancel indicator in the event of there being no ActionForm should be
reasonably easy.

Niall

Thanks,
- -chris


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to