Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Interim (Processing...) Web Page

 
Jason Barker
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,

On my company's intranet, I need to provide a web form to accept user input. The form accepts parameters for a report that will be generated as a text file. Once the user submits the form and I verify it for valid content, I need to generate a web page that displays a PROCESSING status along with the elapsed time since the web form was submitted. The initial handling of the form data needs to initialize a report object that would run on its own while a PROCESSING status page was returned to the user's web browser. This web page (JSP) would continue to refresh itself (maybe every 30 seconds) until it found the text file. Once it did find the file, it would change its output from a PROCESSING status page to display the actual results of the report.

My question is this: what should I do to create a Java object and have it continue processing without the request object having to wait for the object to finish execution? Would this require a thread?


Thanks for your help!
Jason
 
Scott Duncan
Ranch Hand
Posts: 365
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic