bugs 大集合
Neither Errors instance nor plain target object for bean name “inspPlanForm”
这个问题的产生原因是 public ModelAndView Enter(HttpServletRequest request, HttpServletResponse response,InspPlanForm inspPlanForm) {
ModelAndView mav = new ModelAndView("EnterView","inspPlanForm",inspPlanForm);
return mav;
}
return中没有包括"inspPlanForm",inspPlanForm这个模型。
2, 报Tag spring:input...../出错,也是因为返回到这个jsp关联的ModelView没有返回XXXXform 参数,所以<spring:input path=".."/>在数据绑定时就会出错。
3. JSP中 ACTION中 MultipartFile file = mRequest.getFile("inspPlanA"); 文件名对应,但是不要在form中进行数据绑定,因为file得到的是二进制流,不是string。