Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Returning an html screen before initiating another process,

 
Donna Reschke
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to kick-off a process from a web page. I want the browser to immediately return a screen that says the process has been initiated. I don't want it to have to wait for the process to end before returning a screen to the user. So how do I do this? When the user clicks the submit button, a void method is called in my servlet. I set up my return html file name and try to flush that back to the browser. Then I call a separate class to begin my process. Obviously this isn't working as I thought it would. Instead of returning the html screen immediately, it sits there and waits for the process to end. Can anyone tell me what I'm doing wrong?
Thanks, Donna
[ October 04, 2006: Message edited by: Bear Bibeault ]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65111
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See this example (long running process) graciously provided by Ben Souther.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic