Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

listener or sleep(time) for JSP?  RSS feed

 
Nikos Bouzoukis
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, can I use listeners in a jsp page? If not, is there any command that makes a jsp wait for some time before proceeding to the next command?

The case is that I want my jsp to read a variable of another class which gathers data from a device. However, I can't know when the device has stopped sending data to the class. I know only what the last character will be(so I could use a listener here) or I can guess how much time it will take for the device to send the data (so I could use a sleep command).
 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Search the servlet and jsp forum with the key word "wait screen" , there are some post related to this which you make use of for your case.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!