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
> 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. 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
3 matches
Mail list logo