Oracle Java EE 6 Web Component Developer Certified Expert - 1Z1-899 Exam Practice Test
You are creating a web form with this HTML:
11. <form action="sendOrder.jsp">
12. <input type="text" name="creditCard">
13. <input type="text" name="expirationDate">
14. <input type="submit">
15. </form>
Which HTTP method is used when sending this request from the browser?
11. <form action="sendOrder.jsp">
12. <input type="text" name="creditCard">
13. <input type="text" name="expirationDate">
14. <input type="submit">
15. </form>
Which HTTP method is used when sending this request from the browser?
Correct Answer: C
Vote an answer
Given an HttpServletRequest request:
22. String id = request.getParameter("jsessionid");
23. // insert code here
24. String name = (String) session.getAttribute("name")
Which three can be placed at line 23 to retrieve an existing HttpSession object? (Choose three)
22. String id = request.getParameter("jsessionid");
23. // insert code here
24. String name = (String) session.getAttribute("name")
Which three can be placed at line 23 to retrieve an existing HttpSession object? (Choose three)
Correct Answer: A,C,E
Vote an answer
You have a use in your web application that adds several session-scoped attributes. At the end of the use case, one of these objects, the manage attribute, is removed and then it needs to decide which of the other session-scoped attributes to remove.
How can this goal be accomplished?
How can this goal be accomplished?
Correct Answer: C
Vote an answer
A web application allows the HTML title banner to be set using a context initialization parameter called titlestr.
Which two properly set the title in the scenario? (Choose two)
Which two properly set the title in the scenario? (Choose two)
Correct Answer: F,G
Vote an answer
Which two actions protect a resource file from direct HTTP access within a web application? (Choose two)
Correct Answer: A,D
Vote an answer
An application stores session data in a JavaBean object. The object is then stored in the HttpSession object.
Which is true?
Which is true?
Correct Answer: C
Vote an answer
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)
Correct Answer: A,B,D
Vote an answer
A method call inside your servlet has thrown an IOException resulting from a lost network connection to a necessary resource. The servlet has determined that it will be unable to operate successfully for a few minutes, but expects to be able to resume operation after that period. How should this situation handled?
Correct Answer: D
Vote an answer