struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rubbinio <rsolo...@n-able.com>
Subject Re: Struts 2 file upload size validation
Date Fri, 09 May 2008 12:30:39 GMT


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.

-- 
View this message in context: http://www.nabble.com/Struts-2-file-upload-size-validation-tp17112411p17146914.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message