采用Struts2框架采用过滤器:
action2
org.apache.struts2.dispatcher.FilterDispatcher
action2
/*
在文件上传的时候,采用:
FileItemFactory factory = new DiskFileItemFactory();
ServletFileUpload upload = new ServletFileUpload(factory);
upload.setHeaderEncoding("UTF-8");
List items = upload.parseRequest(request);
获得的items为[];
想问在不修改过滤器地址URL(*.action) 的情况下,还有什么办法解决?
非常感谢!