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?

  1. A.

    Generate Pdf

  2. B.

    Content type

  3. C.

    Type Pdf

  4. 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.

Explore the full course: Up Lt Grade Assistant Teacher 2025