Hi,

there is already an issue on this (see [1]).

Perhaps an web.xml entry like:

<web-app>
    ...
    <error-page>
        <exception-type>java.io.EOFException</exception-type>
        <location>/SizeError.jsp</location>
    </error-page>

helps ? See [2]
-M

[1] http://issues.apache.org/jira/browse/TRINIDAD-607
[2] http://www.oracle.com/technology/pub/articles/masterj2ee/j2ee_wk4.html

On 9/11/07, DLC <[EMAIL PROTECTED]> wrote:
> Hi all,
>
>  Part of my web application includes the ability to upload files using the 
> tr:inputFile tag.  So
> far, I can get files uploaded and captured correctly.  However, I'm not sure 
> how to trap the
> EOFException that is thrown when a file above the upload limit (where file 
> size >
> org.apache.myfaces.trinidad.UPLOAD_MAX_DISK_SPACE).  I've read through all of 
> the documentation,
> but couldn't find a place where the exception capture was described.  What is 
> the right way to
> capture the exception, so that I can deliver an appropriate error message to 
> the user?
>
> Thanks for your help,
>
> --Dave
>
>
>
> ____________________________________________________________________________________
> Got a little couch potato?
> Check out fun summer activities for kids.
> http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+kids&cs=bz
>


-- 
Matthias Wessendorf

further stuff:
blog: http://matthiaswessendorf.wordpress.com/
mail: matzew-at-apache-dot-org

Reply via email to