Hi,
I have the following requirement:
1. Upload the file on to server using commons file upload.
2. Generate a unique key using Oracle Sequence and insert a row in the file table stating file is uploaded.
3. Save the file using the unique key as name on the server.
4. Validate the file records for format errors and if there are errors show all the errors to the user in a popup window on top of the upload page.
5. If there are no format errors, store each individual record in the database in a temp table.
6. Now confirm with the user whether he really wants to release the records. (Weird but true)
7. If user says YES then read each record from the temp table and send it to business process for data validation and store mark the record as complete and store the data in the final table.
8. If user says NO then delete all the records from the temp table and delete the file on the server.
Is there any good and robust way of achieving the functionality in point 5,6,7,8? I am using
JSP,
Servlets and javascript.
Any help is appreciated.
Thanks�