For timeout, you can call setMaxInactiveInterval on the server side. This is an example wait I have tried that seems to work. If you could display an animated gif ( like expedia.com does ), then it could look professional:
<html> <body onLoad="redirect()"> Please wait... </body> <script language="javascript"> function redirect() { window.location.href="http://192.168.97.90:8080/UploadServlet"; } </script> </html> -- padhu Suresh Addagalla wrote:
Hi, I have the following issue in implementing a File Upload page. I'm using Servlets/JSP on Apache/Tomcat. The file to be uploaded can be potentially very large. The servlet, after getting the file, needs to parse it and do some DB operations and then send the response. I should display some "progress bar" when this operation is in progress. What is the best way to do this? References to any standard approaches would be highly useful. Also, how do I handle the timeout issue? If the file is large, I am expecting the operation to take longer time than the browser timeout. Pls advice. Thanks in advance, Suresh ------------------------------------------------------------------------ **************************Disclaimer************************************ Information contained in this E-MAIL being proprietary to Wipro Limited is 'privileged' and 'confidential' and intended for use only by the individual or entity to which it is addressed. You are notified that any use, copying or dissemination of the information contained in the E-MAIL in any manner whatsoever is strictly prohibited. ***************************************************************************
___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html