How to read HTML file and display it for user’s confirmation?
This is part of the file upload process using Struts.
1. I developed the upload file page, where I can choose HTML file.
2. In Action class I need to read that file and display it to the user for confirmation.
3. After “confirm” save it to the DB2 table
4. Display that HTML file, as part of the “Welcome page”.
The Welcome page should get the last row from the DB2 table and display it.
I am new in Web development trying to switch from the mainframe.
Really need your help.
I am using Struts, JSP and Java.
I received file in the Servlets Action class , I don’t know how to read it and display it for confirmation .