« Return to Thread: Struts 2 file upload size validation

Re: Struts 2 file upload size validation

by Rubbinio :: Rate this Message:

Reply to Author | View in Thread

mgainty wrote:
2.0.11 FileUploadIntereptor.java

ActionContext ac = invocation.getInvocationContext();
HttpServletRequest request = (HttpServletRequest)
ac.get(ServletActionContext.HTTP_REQUEST);
HashMap map = request.getParameterMap();
//for further information take a look at
http://www.docjar.com/docs/api/javax/servlet/ServletRequest.html#getParameterMap
Tried that and it works as long as the file size validation does not fail in the interceptor. If it fails the parameter map is empty. Any other ideas.

 « Return to Thread: Struts 2 file upload size validation