Create a thread that reads and updates the database, start that thread in
the jsp file and show your output. The thread will go on after you exit the
jsp page. THe class that implements the parsing and storing in the database
must implement the java.lang.Runnable interface.
Any further questions, just reply to this mail.
Yours
Tron
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 12 August, 2000 3:18 PM
To: [EMAIL PROTECTED]
Subject: dispaying a JSP w/background process running
Hey I am sure this is basic question but first time I 've had to do it. Hope
someone can help or refer me. I have a servlet that uploads a file, After
the
file is uploaded I want to start a process that will read and parse the
file and update the database. But since this process of reading parsing, and
updating the DB may take a while, I want to display a JSP for the client
immediately after the file has been uploaded. I was told whatever code is
remaining after you call callPage is not executed. So is there anything
special I have to do to display the page and have it read, parse, update in
the background? Thanks
--
----------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]
--
----------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]