About the interaction between SPRINGMVC and Ajax-Development records

Source: Internet
Author: User

Every time I planted in this place, good bad!

  

In the JSP page <form> tag set action= "Request URL", button there with JS for monitoring, click on the trigger Ajax method, the foreground data to the backend controller, and then the page does not jump, Executes the Ajax success callback method, and the resulting page will always unexpectedly jump to the URL of the action request. Watched for a long while to find, although the button click will execute Ajax, but after execution or will continue to submit form to the "Request URL", in order to prevent the page jump, can only not submit form, that is, remove the action. Prevent page jumps to solve the problem.

About the interaction between SPRINGMVC and Ajax-Development records

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.