nerdexam
Oracle

1Z0-899 · Question #122

To take advantage of the capabilities of modern browsers that use web standards, such as XHTML and CSS, your web application is being converted from simple JSP pages to JSP Document format. However…

The correct answer is D. <jsp:directive.page contentType='application/javascript' />. See the full explanation below for the reasoning.

Question

To take advantage of the capabilities of modern browsers that use web standards, such as XHTML and CSS, your web application is being converted from simple JSP pages to JSP Document format. However, one of your JSPs, /scripts/screenFunctions.jsp, generates a JavaScript file. This file is included in several web forms to create screen-specific validation functions and are included in these pages with the following statement: Which JSP code snippet declares that this JSP Document is a JavaScript file?

Exhibit

1Z0-899 question #122 exhibit

Options

  • A<%@ page contentType='application/javascript' %>
  • B<jsp:page contentType='application/javascript' />
  • C<jsp:document contentType='application/javascript' />
  • D<jsp:directive.page contentType='application/javascript' />
  • ENo declaration is needed because the web form XHTML page already declares the MIME type of the

How the community answered

(41 responses)
  • A
    5% (2)
  • B
    12% (5)
  • D
    80% (33)
  • E
    2% (1)

Community Discussion

No community discussion yet for this question.

Full 1Z0-899 Practice