Forums Register Login

waiting for some time in JSP page

+Pie Number of slices to send: Send
after doing some operations in jsp file and the process has to wait for some time(in the same page) and then get executed meanwhile. how will we do using jsp's
+Pie Number of slices to send: Send
 

Originally posted by sitaram irrinki:
after doing some operations in jsp file and the process has to wait for some time(in the same page) and then get executed meanwhile. how will we do using jsp's



can you explain your question and requirement more clearly please?
+Pie Number of slices to send: Send
 

Originally posted by sitaram irrinki:
after doing some operations in jsp file and the process has to wait for some time(in the same page) and then get executed meanwhile. how will we do using jsp's



In the jsp,

<!-- process some operations -->

<%
Thread.sleep(5000); // sleep 5 seconds
%>

<!-- process more -->


Regards,

Heonkoo
+Pie Number of slices to send: Send
you can use javascript as well:

self.setTimeout('showMessage()', 5000)
Have a look here
+Pie Number of slices to send: Send
Writing functionality like that will most probably iritate users though.
I'm so happy! And I wish to make this tiny ad happy too:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 25858 times.
Similar Threads
security related
how do I pass information from one JSP to another
How To Use Servlet Instead Of Jsp In Struts2
when is a JSP compiled?
how to display time in jsp page
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 07:04:15.