struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Implementing "cancel" on a form
Date Sun, 04 Oct 2015 18:32:53 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

All,

I've got a form which works nicely, and I'd like to add a "cancel"
button to it. Right now, I have an Action class that implements no
Struts2-defined interfaces... I just have the typical execute-style
methods edit() and save(). I'd like to call cancel() when the user
presses the cancel button.

I've been both reading "Struts 2 in Action" and doing a bit of
Googling, but it's tough to find resources on implementing "cancel".

I did see something about using a button with a name like
"redirect-action:index" but it wasn't clear when that redirection
takes place... before or after the action is invoked.

What am I missing?

Thanks,
- -chris
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJWEXDVAAoJEBzwKT+lPKRYYvIP/iT1YN+rxmuj0LZZA9/1lzW2
uAe6ptT9LAZAIkk9Nqz0gCk0PRCwWuocvi9IBMl4hv5IS4okWS6lJzJ6oVc6DJSX
Bvc0kzNe06q6Djs1aCxFaTv2+XLansT5Q06XBJnkNNykG429mMJzqbkq+/0dAkGv
YYTUPMDe1SuxNG6M6VmLK/hba6y3qGRhg2vfyVFoqQljYQa3BT8tPIu79IREPZHJ
/gTujyXU1Nwxn4YcTTARUj+NkdQIM1aRwVsV7NlliVe+IHkw2oq4w7+ee8U7W4LO
Mj/AZl9aobymhuWhQafJy1cZ6CMR6JNSVRFuZhDc9SZKECcO0eMrxNb4xG98IVj+
tTBOBc4fLg8pIc7OW8DCRHWBgKanR7eKOhiZmfswIrjAzcN1imH6Py8E32Pwe1Tj
rpGURH5CsorkNmwrKlGlLYk2Tk7QczfaBAuNEoupLJ2yRQhCoaJaayc4+dZfo88y
NZo3VfxiAQ2NGMUP35OE5ltaq1zW/siA9FsrCUwhsj/r+VMzScfEWK2DujQPj8P4
GohnK6OnHMiXV8N5yTSkJHBdGEcbIoNUaNUfW1/I/HE6ofCYUUkCaZGaT1OUfxJa
aKUkwAxvjURWKiav363lJrNh5ouoAkPhQSgKfj/ahRBwWbqEsPhGRjbQJxkPGzTu
D2ss8cKXJlwPd4RCuwds
=jZaD
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message