How to call a javascript function from a servlet?

Posted by sunnyj on Stack Overflow See other posts from Stack Overflow or by sunnyj
Published on 2010-06-03T09:00:17Z Indexed on 2010/06/03 9:04 UTC
Read the original article Hit count: 235

Filed under:
|
|

I submit a (jsp) form to a Servlet A. Then I handle some logic which would make the submission either a success or a failure. I use jquery's ajaxForm() function to re-direct the user to a different jsp after the Servlet logic is executed. But before this redirection happens I need to show a javascript notification showing whether the submission was successful or not. Can someone tell me how can I do this?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about jsp