READ Free Dumps For Oracle- 1z0-899
Question ID 4679 | For manageability purposes, you have been told to add a “count” instance variable to a critical JSP Document so that a JMX MBean can track how frequent this JSP is being invoked. |
Option A | A. <jsp:declaration> int count = 0; |
Option B | B. <%! int count = 0; %> |
Option C | C. <jsp:declaration.instance> int count = 0; |
Option D | D. <jsp:scriptlet.declaration> int count = 0; |
Correct Answer | A |
Question ID 4680 | 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: |
Option A | A. <%@ page contentType=‘application/javascript’ %> |
Option B | B. <jsp:page contentType=‘application/javascript’ /> |
Option C | C. <jsp:document contentType=‘application/javascript’ /> |
Option D | D. <jsp:directive.page contentType=‘application/javascript’ /> |
Option E | 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. |
Correct Answer | D |