Oracle Java EE 6 Web Component Developer Certified Expert - 1Z1-899 Exam Practice Test
When using Servlet asynchronous API if you want to dispatch the request back to a particular url - "url" within the same ServletContext which of the following API would you use?
Correct Answer: E
The jquery_1_3_2.jar file contains the JQuery Ajax framework in its META-INF/ resources directory. Where should the jar file be placed inside the web application to ensure the resources it contains are accessible by clients?
Correct Answer: C
ServletContextListeners are invoked in
Correct Answer: D
Explanation: Only visible for ExamsLabs members. You can sign-up / login (it's free).
Which java code snippet checks whether the user is of the role "MANAGER" for a given HttpServRequest,
httpServletRequest?
httpServletRequest?
Correct Answer: B
Explanation: Only visible for ExamsLabs members. You can sign-up / login (it's free).
Which of the following annotations relate to security in a servlet?
(i) @WebSecurity
(ii) @RolesAllowed
(iii) @WebConstraint
(iv) @HttpConstraint
(v) @Servletsecurity
(i) @WebSecurity
(ii) @RolesAllowed
(iii) @WebConstraint
(iv) @HttpConstraint
(v) @Servletsecurity
Correct Answer: C
You have a new IT manager that has mandated that all JSPs must be refactored to include no scriptlet code.
The IT manager has asked you to enforce this.
Which deployment descriptor element will satisfy this constraint?
The IT manager has asked you to enforce this.
Which deployment descriptor element will satisfy this constraint?
Correct Answer: C
Given the web application deployment descriptor elements:

Which element, inserted at line 27, causes the ParamAdder filter to be applied when MyServlet is invoked by another servlet using the RequestDispatcher.include method?

Which element, inserted at line 27, causes the ParamAdder filter to be applied when MyServlet is invoked by another servlet using the RequestDispatcher.include method?
Correct Answer: B