The exception is thrown serverside, so there is no problem.
On 4/20/05, José Antonio Pérez Testa <japtesta@indra.es> wrote:
> IMO it depends on the position in the form. If the Part containing the
> hidden field is before the Part containing the broken file there is a
> chance to get it, if the exception is thrown before this part was
> processed there is no chance at all.
>
> Tom Eugelink wrote:
>
> >> 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.
> >
> >
> > No, here is the form code in the jsp:
> >
> > <form enctype="multipart/form-data" method="post" action="PhotoUpload">
> > <input enctype="multipart/form-data" type="file" name="photo"/>
> > <input type="submit" value="Upload" name="upload"/>
> > <INPUT name="id" type="hidden" value="<%=request.getParameter("id")%>"/>
> > </form>
> >
> > There is a hidden field "id" that get's it value from the request that
> > opened the jsp. On error I need to reproduce that URL and add an error
> > code.
> >
> > So:
> >
> > http://xxx/upload.jsp?id=3
> >
> > will become
> >
> > http://xxx/upload.jsp?id=3&error=maxsize
> >
> > Tom
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: commons-user-help@jakarta.apache.org
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>
>
--
"You can lead a horse to water but you cannot make it float on its back."
~Dakota Jack~
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org
|