Which JSP code snippet declares that this JSP Document is a JavaScript file?

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?

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?

A.
<%@ page contentType=‘application/javascript’ %>

B.
<jsp:page contentType=‘application/javascript’ />

C.
<jsp:document contentType=‘application/javascript’ />

D.
<jsp:directive.page contentType=‘application/javascript’ />

E.
No declaration is needed because the web form XHTML page already declares the MIME type
of the /scripts/screenFunctions.jsp file in the <script> tag.



Leave a Reply 5

Your email address will not be published. Required fields are marked *


giuseppe

giuseppe

D, this is the correct way to use the directive page in a jsp document

G

G

Answer should be A,E They are same thing

Neo

Neo

A, Because it says JSP Document.

Neo

Neo

D, Because it says JSP Document.