jquery implements the Ajax Submission Form form (which can be submitted as JSON), which is received with SPRINGMVC. Graphic explanation

Source: Internet
Author: User

the first method (easy to use, anti-mosquito):

1.1 Receive from Form form to Congtroller. 1 is the form form, 2 is the AJAX submission 3 SPRINGMVC receive

1.2 Debug look backstage data, see, Usereo received the data

1.3 People want to see Seralize and Seralizearray data different

Seralize:id=1&name=xiaohua&age=18&sex=man

seralizearray[ID 1],[name xiaohua],[age 18],[Sex mans]

The second method submits the form, the font with red, first green after red good omen

The second method draws on http://blog.csdn.NET/zhangdaiscott/article/details/18456215

The author level is high, not to small white tell how to receive, or that form

2.1 JSP:

2.2debug See results

2.2.1 Controller:

2.2.2 JSON into Java objects:

Here's a simple way to not reference the extra jar

jquery implements the Ajax Submission Form form (which can be submitted as JSON), which is received with SPRINGMVC. Graphic explanation

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.