Dear All,
I use JUploader version 3.4.
I would like to upload multiple files using JUploader.
The page to upload files is uploadList.jsp, where I put the script to run the applet:
<applet name="JUpload" code="wjhk.jupload2.JUploadApplet"
archive="plugins/jupload/wjhk.jupload.jar" width="636" height="500" mayscript>
<param name="postURL" value="uploadMulti.jsp"/>
<param name="stringUploadSuccess" value="SUCCESS">
<param name="stringUploadError" value="ERROR">
Java 1.5 or higher plugin required.
</applet>
uploadMulti.jsp is mapped to actually a servlet (named UploadMultiServlet) to process to filter the uploaded files, write the files, write path of the files, date of upload to database etc, which can not be done in JSP.
Upon finishing upload process, it should be redirected to other page status.jsp, which shows upload result and other stuffs.
In the servlet:
if (uploadResult) {
responseStr = "SUCCESS";
response.sendRedirect("status.jsp?uploadResult=responseStr");
} else {
responseStr = "ERROR";
response.sendRedirect("status.jsp?uploadResult=responseStr");
}
in the page status.jsp, I wrote:
<% String uploadResult = request.getParameter("uploadResult"); %>
Upload Result = <%=uploadResult%>
I successfully upload the files and writing information to database, but the it can not be redirected to status.jsp, instead, alert (error message) appears:
"Received HTTP Status 302 Moved Temporarily"
I would like to remove the error message and make it redirected to status.jsp.
If it is not possible, how can I disable button "Upload" in the applet, so that the files can not be re-uploaded?
I have been into this problem for some days and I can not find any answer elsewhere.
Thank you in advance for your advice.
Regards,
Jo