GTU WTAD Practical 15 : Assume that we have got three pdf files for the MCA-1 Syllabus, MCA-2 Syllabus and MCA-3 Syllabus respectively, Now write a Servlet which displays the appropriate PDF file to the client, by looking at a request parameter for the year (1, 2 or 3)

GTU WTAD Practical 15 :  Assume that we have got three pdf files for the MCA-1 Syllabus, MCA-2 Syllabus and MCA-3 Syllabus respectively, Now write a Servlet which displays the appropriate PDF file to the client, by looking at a request parameter for the year (1, 2 or 3).

GTU WTAD Practical 15 :  Assume that we have got three pdf files for the MCA-1 Syllabus, MCA-2 Syllabus and MCA-3 Syllabus respectively, Now write a Servlet which displays the appropriate PDF file to the client, by looking at a request parameter for the year (1, 2 or 3).

This Servlet program explains how to display PDF File as per the Request parameter sent by Page1. Here most important point is that Using servlet Program I am going to display PDF File. Copy 2 PDF File into gtu_15 folder(Save as 2640002.pdf and 2640012.pdf)  otherwise Servlet will gives you error.

File Name : index.jsp

File Location : Tomcat_Apache\webapps\gtu_15\

 

File Name : web.xml

File Location : Tomcat_Apache\webapps\gtu_15\WEB-INF

 

File Name : GeneratePdf.java

File Location : Tomcat_Apache\webapps\gtu_15\WEB-INF\classes

 

 Output (index.jsp File)

GTU WTAD Practical 15 :  Assume that we have got three pdf files for the MCA-1 Syllabus, MCA-2 Syllabus and MCA-3 Syllabus respectively, Now write a Servlet which displays the appropriate PDF file to the client, by looking at a request parameter for the year (1, 2 or 3).

 

Output of Servlet (GeneratePdf)

GTU WTAD Practical 15 :  Assume that we have got three pdf files for the MCA-1 Syllabus, MCA-2 Syllabus and MCA-3 Syllabus respectively, Now write a Servlet which displays the appropriate PDF file to the client, by looking at a request parameter for the year (1, 2 or 3).

 

Adarsh Patel

My Self Adarsh Suryakant Patel. Currently I am working as Assistant Professor at Parul Instiute of Engineering and Technology, MCA Department, Limda, Vadodara. Major Responsibility : * Lectures * Organizing Training and Expert Sessions for * Placement and Recruitment * Faculty Representative