I figured out the issue with this error not displaying for me.
It turns out that in order to display the error message for a
caught FileUploadLimitExceededException, the <stripes:errors/> tag needs to
be within the <stripes:form> tag.
Even though the documentation for the <stripes:errors/> states that if it is
outside of the form tag "it will display errors associated with the action
bean for the current request", it appears not to for this case.
Just thought I'd mention that in case anyone else was having trouble getting
the error message to display.
-Matthew
On Fri, Jun 24, 2011 at 8:24 AM, Matthew Altman <altman.matt...@gmail.com>wrote:
> Bump.
>
> Just looking for some troubleshooting things to try so I can get this error
> message displaying properly.
> Thanks.
>
>
> On Tue, Jun 21, 2011 at 1:52 PM, Matthew Altman
> <altman.matt...@gmail.com>wrote:
>
>> So I'm using a standard <stripes:file> input, and I have the following
>> defined for my max post size:
>> <init-param>
>> <param-name>FileUpload.MaximumPostSize</param-name>
>> <param-value>21m</param-value>
>>
>> When my upload is less than this, everything works fine. When I surpass
>> this size, it does appear to correctly fail and returns to the source page,
>> however no error message is displayed.
>>
>> I'm using the out-of-the-box StripesResources.properties which contains:
>> validation.file.postBodyTooBig=Total upload size of {3} KB exceeds the
>> maximum size of {2} KB
>>
>> But this error message is not getting displayed with the <stripes:errors/>
>> tag.
>>
>> Any suggestions?
>>
>> Thanks,
>> -Matthew
>>
>>
>
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users