Hi,
    I have a page, when the user click the process button, it will go to the
servlet to do the process.  The process may take some times, so I want to
show a waiting page tell user the request is processing, please wait...etc.
After the process is finish, the waiting page will automatically go to the
result page.
    Anyone know how to do it?

I have 2 solutions, but I don't think there are good.  First solution is
using <meta http-equiv="refresh" content="0;URL=<%=url%>">
To decalre the url, I need to do
<%
 String serverip = request.getServerName();
 String serverport = String.valueOf(request.getServerPort());
 String url = "http://"+serverip+":"+serverport+"/servlet/Controller";
%>
because I cannot hard code the server url, so I don't like these.

Second solution is using javascript setInterval function to auto submit the
form.  but this only work in IE, not in netscape. So I can't use it.

Please tell me any others good solution.

Thanks





Regards,

Louis
���`���,���,���`���,�����,���`���,��,���`���

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to