形如studentAction上传图片 private Student student; private File photo;private String photoFileName;private String photoContentType;photo会报空,不知道怎么搞的,然后看了别人的代码把 private File photo;private String photoFileName;private String photoContentType;建成一个 StudentFile类,studentAction中就变成了 private Student student; private StudentFile studentFile;然后操作就不报空了。。
struts2上传出现上传文件为空
最新推荐文章于 2020-06-29 11:38:30 发布