I require Java Jsp servlet code. I am using Eclipse JUNO, MySQL workbench, Apache Tomcat 7 server.
Problem:
Code must have “.pdf” file upload, file view on webpage and download via button click on webpage.
My table is user_pdf with a column called pdf_name (primary key).
JSP page “userpdf.jsp” with following elements:
<form action="LastServlet" method="post" encType="multipart/form-data">
Select the file to upload
<input type="file">
<input type="submit" name="s" value="submit">
</form>
<a href="#">Download pdf</a>
Another issue:-
I would like to know how to code to display a pdf file(whose pdf_name is stored in a MySQL table user_pdf) in a section of my webpage(say webpage is divided into two sections vertically).