1Z1-899試験無料問題集「Oracle Java EE 6 Web Component Developer Certified Expert 認定」

You are implementing a model component. You realize that an IOException might arise if you lose connection to the database. How should you address this?

You are creating a new ISP page and you need to execute some code that acts when the- page is first executed, but only once. Which three are possible mechanisms for performing this initialization code? (Choose three)

正解:B,C,D 解答を投票する
Which of the following annotations relate to security in a servlet?
(i) @WebSecurity
(ii) @RolesAllowed
(iii) @WebConstraint
(iv) @HttpConstraint
(v) @Servletsecurity

Given the java code snippet in contextInitialized method of a ServletContextListner:
ServletRegistration.Dynamic sr = (ServletRegistration.Dynamic)sc.addServlet ("myServlet", myServletClass); sr.addMapping("/abc"); sr.setServletSecurityElement(servletSecurityElement); sr.addMapping("/def"); Which statement is true?

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.
Which JSP code snippet must you use to declare this instance variable in the JSP Document?

Given:
11. <%
12. request.setAttribute ("vals", new String[] {"1", "2", "3", "4"});
13. request.setAttribute ("index", "2");
14. %>
15. <% - - insert code here - - %>
Which three EL expressions, inserted at line 15, are valid and evaluate to "3"? (Choose three)

正解:A,D,F 解答を投票する