Re: Struts 2 file upload size validation

2008-05-09 Thread Rubbinio
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 >

Re: Struts 2 file upload size validation

2008-05-08 Thread Rubbinio
Yes if the file size is OK everything is fine. At first we used the default stack. Then we took the default and modified it by moving the fileUploadInterceptor below the params interceptor so it would look something like this: interceptor-stack name="ourUploadStack" interceptor-ref name="ex

Re: Struts 2 file upload size validation

2008-05-07 Thread Laurie Harper
The OP wrote: >> we are trying to use file upload in Struts 2... Martin wrote: Struts 1.2.9 Doh! org.apache.struts.chain.servlet.validateActionForm where the validate method is declared as protected ActionErrors validate(Context context, ActionConfig actio

Re: Struts 2 file upload size validation

2008-05-07 Thread Laurie Harper
Rubbinio wrote: Hi, we are trying to use file upload in Struts 2 and run into the following problem. We have a form with multiple fields among which one is a file input field. The user must complete the form and then select a file to upload. If the file size is larger than what we specify in th

Re: Struts 2 file upload size validation

2008-05-07 Thread Martin
Struts 1.2.9 org.apache.struts.chain.servlet.validateActionForm where the validate method is declared as protected ActionErrors validate(Context context, ActionConfig actionConfig, ActionForm actionForm) //reference the actionF