这是我的代码-
@controller
public ModelAndView ServiceContract(HttpServletRequest httpServletRequest,
HttpServletResponse httpServletResponse) {
int sortId = Integer.parseInt(httpServletRequest.getParameter("sortId"));
ModelMap map = new ModelMap();
map.addAttribute("jsonString",jsonStringX);
return new ModelAndView(jsonView,map);
}
在我的jsp文件中,我们从哪里开始这个控制器方法。-
var sortId= [1,2, 3, 4 , 5];
如何在控制器中获取它的值?