commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Eugelink <>
Subject Re: FileUpoad:
Date Wed, 20 Apr 2005 14:01:36 GMT
> 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")%>"/>

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.



will become



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

View raw message