Which page direction should be used in JSP to generate a PDF page?
2022
Which page direction should be used in JSP to generate a PDF page?
- A.
Generate Pdf
- B.
Content type
- C.
Type Pdf
- D.
Content Pdf
Attempted by 262 students.
Show answer & explanation
Correct answer: B
To generate a PDF response in JSP, set the contentType attribute in the page directive to a PDF MIME type (typically application/pdf). JSP
A video solution is available for this question — log in and enroll to watch it.