How to limit file upload size without full upload

2009-06-13 Thread tatan123
We want to restrict the file upload size to 2 MB. While doing testing it seems we can upload a 100 MB file, after that struts2 showing message that the uploaded file exceeds the max file size limit. Is there any way struts2 can show the error message without full file upload... Thanks -- View th

Re: How to make Struts2 action take only POST request

2009-03-28 Thread tatan123
> There is no configuration that would let you do that. However you can do > this programatically by using > ServletActionContext.getRequest().getMethod() > > Hope this helps. > > Kumar. > > --- On Fri, 3/27/09, tatan123 wrote: > > From: tatan123 > Subject

How to make Struts2 action take only POST request

2009-03-27 Thread tatan123
How to make Struts2 action take only POST request. Is there any way like spring controller , acceptable HTTP method. We only want submit to happen by post and no GET request should be allowed -- View this message in context: http://www.nabble.com/How-to-make-Struts2-action-take-only-POST-request