commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dakota Jack <>
Subject Re: FileUpoad:
Date Wed, 20 Apr 2005 13:51:25 GMT
> The problem: during the FileUpload, parse(...) throws a
> FileUploadException if the file exceeds maxsize. In order to handle this
> situation I want to do a forward/redirect, but for the URL I need a
> field value.

A field value from the request?  In what you have below, the "field"
apparently is in a GET, but you cannot use that for a file upload.

> In steps:
> - upload.jsp?id=XXXX, in the jsp a hidden field contains the id
> - UploadServlet gets file and id
> - upon error I want to forward to upload.jsp, with an error and the id
> So I need the ID in the servlet when the FileUploadException is thrown.
> Better? :-)

I would have to look at your code in some more detail to see what is
up.  You can always catch an exception and do whatever you want, but
how you do this depends on the code.  Care to show the code a bit so
we can see what the situation is?

"You can lead a horse to water but you cannot make it float on its back."
~Dakota Jack~

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message