How to use Ajax JQuery in Spring Web MVC

后端 未结 2 1480
走了就别回头了
走了就别回头了 2020-12-23 10:21

I am using Spring Web MVC for my application.

I have 1 dropdown list in my JSP View, coming from following request called savegroup.htm

         


        
2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-23 10:53

    Define the controller for the URL

    If you want to use POST method:

    content.load('URL(.)or(#)sectionToLoad', {}, function(event) {
    ...
    });
    

    or, if you want to use GET method:

    content.load('URL(.)or(#)sectionToLoad', function(event) {
    ...
    });
    

    Call it with a function like .click or .submit

    and that´s it

提交回复
热议问题