Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

waiting for some time in JSP page  RSS feed

 
sitaram irrinki
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Sripathi Krishnamurthy
Ranch Hand
Posts: 232
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Heonkoo Lee
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Poobhathy Kannan
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can use javascript as well:

self.setTimeout('showMessage()', 5000)
Have a look here
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Writing functionality like that will most probably iritate users though.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!