Can I determine which submit button was used? I have a confirmation form with 2 submit buttons. The first will confirm the order, perform some database tasks, and then redirect. The second, which is the βCancelβ button, simply redirects to the same page without performing any database tasks.
Is it possible in the servlet, preferably through the request object, to determine which submit button was used? I would prefer not to depend on Javascript, as it is quite simple, but resort to it if possible.
Thanks.
source share