Now still in use WEBWORK2, these days want to write their own upload code to reorganize, packaging, as a component to use, later on in the code rewrite, today want to put my upload components into the WEBWORK2, But there is a problem: the request in WEBWORK2 's action is resolved, not the most primitive httpservletrequest, I use (commons-fileupload) Servletfileupload, get the file list is always 0, looking for a long time to know is Webwork.multipart.parser make ghost, because WebWork always in dispatch automatically do multipart processing, The way to deal with Pell, COS, jakata three ways, just start to get the most original HttpServletRequest objects, can not get, are multipart handled, So just think of the webwork.multipart.parser =jakata changed to WEBWORK.MULTIPART.PARSER=ABCDEFG to see the effect, haha, sure enough, after success
And then you know the real intent of the WebWork file upload.