-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Niall,

Niall Pemberton wrote:
> On 3/6/07, Christopher Schultz <[EMAIL PROTECTED]> wrote:
>> I don't see that code, though.
> 
> See line 800 here: http://tinyurl.com/yqfok2

Aah, thanks. For whatever reason, I had always read CANCEL_PROPERTY as
CANCEL_KEY for some reason. It looked like the property was
"org.apache.struts.CANCEL" instead of the one with "taglib" in its value.

Not sure how I missed this before; thanks for the (very specific) pointer.

>> Any thoughts on [canceling actions with no action form]?
> 
> 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.

The AbstractPopulateActionForm command would be simple enough to
duplicate. In fact, the only "problem" with that class is that it
bails-out of processing when there's no form. If the cancel processing
were performed unconditionally, then I'd be exactly where I wanted to be.

I guess my major fear was that manually checking for the request
property would turn out to be a fragile solution, which is why I went
for the dummy form solution.

Thanks,
- -chris

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF7el89CaO5/Lv0PARAgAYAJ9LdCpctlbHOsNJoTVEjHuq5Hp00gCfa66S
DvOx37zJqwSQEN1+UIy5Yog=
=0syF
-----END PGP SIGNATURE-----

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

Reply via email to