第一个控制器通过从jsp
绑定从类TestClass获取对象protected ModelAndView onSubmit(HttpServletRequest request,
HttpServletResponse response,
BindException errors, TestClass test)
throws Exception {
ModelAndView mv = new ModelAndView("page.jsp", "modelObject", test);
return mv;
}
并正在处理第二个,他只获取对象并传递回其他jsp页面
protected Test showForm(HttpServletRequest request,
HttpServletResponse response,
BindException errors, TestClass test)
throws Exception {
return test;
}
这个问题的另一个解决方案或更好的方法可以给它吗?