Stan,

        I have done something similar in a servlet by reposting to the
same servlet. The way I did this is by out-putting a hidden value in the
submission, then using a getParameter to retrieve this value on the next
submit. The first page was the user submitting some data, which when
submitted brought up a proof-read-page. If everything was OK they would
hit the submit button again (so the same page was actually generated
twice. The servlet would know to go to the correct processing part of
the servlet because of the hidden parameter would direct it to that part
of the servlet that did the processing.
        For example, I hid a value called action with a value of
"step2". In my servlet I had code that... if(action.equals("step2")){
..do something ...}+
        So how might this apply to your problem? I'm not sure :-( but it
might spark an idea.

Tom Kochanowicz




-----Original Message-----
From: lixiaoquan [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 05, 2004 5:02 AM
To: [EMAIL PROTECTED]
Subject: Can servlet generate a Web page first, then continue to run ?

hi,

I want to show a page immediately after the visiters' Form Submitting
,then do some logical processing at backgroud(this will assume a long
time, so it may bother the visitor).  I surpose to do these in one
servlet.

How can I do this?

Thanks
                                                         
stan

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.557 / Virus Database: 349 - Release Date: 12/30/2003
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.557 / Virus Database: 349 - Release Date: 12/30/2003
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to