PDA

View Full Version : form.submit failure handler



Tina G
29 Oct 2007, 9:46 PM
I am looking for an answer to


What exactly must the Server response for invoking the failure handler in form.submit?

I have a struts action servlet whose execute method returns null and by default my form.submit's success handler gets executed. I have an error condition at the server side and would like to know what exactly to return from server to invoke the failure function handler for a form submit.

Inputs appreciated.

tryanDLS
30 Oct 2007, 8:19 AM
At a minimum

{success: false}

Try searching for form+submit - there are many threads discussing this. Also, you can look at the 2.0 doc for form.Action.Submit. That doc also applies to the 1.x code.