Win a copy of Head First Android this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

Design problem

 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi ,


I want to develop a code which can take care of following senario

We want to develop a form which accepts and processes user request in background

Here is the use case


1)User fills the form information (JSP )
2)Hits on a submit on the form
3)On submition , we will call a servlet which will do validation of the form data and then the servlet will call a status jsp
4)The status jsp will show message , that request is submitted and then will make a call for processing. ( Processing takes about 2 mins)

The problem that I am facing is

Even if I include the process call at the very end of status jsp , still the status jsp appears after the process call is complete.

Basically what should be done so that method calls happens after the jsp is displayed?



Thanks
Hrishikesh
 
author and iconoclast
Posts: 24203
44
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You need to do the long-running processing in a separate thread dedicated to that purpose.
reply
    Bookmark Topic Watch Topic
  • New Topic