Which page direction should be used in JSP to generate a PDF page?

2021

Which page direction should be used in JSP to generate a PDF page?

Answer: B. Content typeTo generate a PDF response in JSP, set the contentType attribute in the page directive to a PDF MIME type (typically application/pdf). JSP

  1. A.

    Generate Pdf

  2. B.

    Content type

  3. C.

    Type Pdf

  4. D.

    Content Pdf

Attempted by 431 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.

Explore the full course: Uppsc Polytechnic Lecturer 2025 Cs

Loading lesson…