File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes upload redirect to error page with websphere5.0 setting Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "upload redirect to error page with websphere5.0 setting" Watch "upload redirect to error page with websphere5.0 setting" New topic
Author

upload redirect to error page with websphere5.0 setting

grace chow
Greenhorn

Joined: Oct 25, 2004
Posts: 13
Dear,
I have tested the reason redirecting to an error page during upload may be due to the ENCTYPE="multipart/form-data.. As I have removed the ENCTYPE="multipart/form-data.. and it does not redirect to an error page. I wonder if there is anything I need to set in WEBSPHERE 5.0 so that it will enable ENCTYPE="multipart/form-data to receive the upload more constantly so that it work normally without redirect to error page.

thanks for your kind attention.

Rgds,





function SaveForm() {

if(validate())
{

document.form2.mode.value = "save";
document.form2.action = "uploadEngine.jsp";
document.form2.submit();
}
}

<form name="form2" method="post" action="" class="form" ENCTYPE="multipart/form-data">

<table>


<tr>
<td class="Arial10" colspan="2">
</p>
<input type="file" name="upfile">
</td>
</tr>


<tr>
<td width="20%"> <input type="button" name="Save" value="Save" onKlick="SaveForm()">

</td>
<td width="80%">&nbsp;

</td>
</tr>



</table>
</form>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: upload redirect to error page with websphere5.0 setting
 
Similar Threads
Ajax javascript not recieving responseText from Struts
upload redirect to error page
multipart/form-data inputs
Getting "not a multipart request" even though the image is being saved.
How to move a video file(*.flv) from a directory to another directory