This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
Greetings all, I'm developing a servlet to be called from a JSP. This particular servlet will take a good amount of time, due to some processing needs. I'm trying to find a way to update the user while this processing is taking place. I don't need a percentage or amount of time, as the processing is not consistent per each request. All I need is something to inform the user that the process is continuing. I have seen similar problems on the JDC forums, but I have yet to see a satisfactory solution. Any ideas? Thanks!
"long-running servlet" is an oxymoron. As I've mentioned before, the best way to think of a servlet is not as a program you can chat with, but as a subroutine call made by the client (RPC, if you will) that will time out if the results don't come back soon enough. And, in any event, depending on the design of the client and server systems, the client may not display ANYTHING AT ALL until the servlet has finished executing - which kind of makes putting up a "please wait" message futile. If you've searched earlier discussions on this topic here in the JavaRanch Servlet forum and were not satisfied with the solutions suggested, I can only say "I'm sorry". The limitation is not in Java, it's in how HTTP works.
Customer surveys are for companies who didn't pay proper attention to begin with.