How to use Thread.sleep(2000) in JSP or Servlets?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   zhenhua_shi
Posted On:   Tuesday, March 19, 2002 05:39 AM

See this code:





Stop Time <%=new java.util.Date()%>



<%
Thread.currentThread().sleep(2000);
%>


Start Time <%=new java.util.Date()%>







This code can not put "stop Time" and "start Time" step by step.



Who can show the "stop time" on IE at first, after 2 seconds,then show the "Start time" ???


ThanX in advance!

Re: How to use Thread.sleep(2000) in JSP or Servlets?

Posted By:   Anonymous  
Posted On:   Tuesday, March 19, 2002 06:15 AM

Maybe you should read a bit more on how servlets work...
About | Sitemap | Contact