如何将数据从 bootstrap x-editable 发送到 servlet?目前我的设置是这样的:
$(document).ready( function() {
$('a.accordion-toggle').editable({
ajaxOptions: {
dataType: 'json'
},
placement: 'right',
name: 'toEdit',
url: '../admin/module_edit.do',
title: 'Edit'
});
});
我的servlet是这样的:
@RequestMapping( value = "/admin/module_edit", method = RequestMethod.POST )
public @ResponseBody
String editSubjectAndStrand( @RequestParam
String toEdit, HttpServletRequest request )
{
System.out.println( toEdit );
return "";
}
它现在没有在我的服务器端打印任何东西。我究竟做错了什么?