1.
Given an HttpServletRequestrequest and HttpResponseresponse, which sets a cookie "username" with the value "joe" in a servlet?
2.
Which annotation enables a servlet to efficiently process requests of typo multipart/form-data that involve large files being uploaded by the client?
3.
A web application wants to register a new servlet at runtime using one of the servletContext.addServlet methods. In the implementation of which method is it legal to perform this operation?
4.
In ServletContext.getNamedDispatcher(string arg0) arg0 is the
5.
When using Servlet asynchronous API if you want to dispatch the request back to a particular url -"/url" within the same Servlet Context which of the following API would you use?
6.
Which describes a trigger that causes a call to an AsyncListener?
7.
You need to create a JavaBean object that is used only within the current ISP page. It must NOT be accessible to any other page including those that this page might import. Which JSP standard action < .in accomplish this goal?
8.
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?
9.
Given an HttpServletRequest request and an httpServletResponse response: 41. HttpSession session = null; 42. / / insert code here 43. if (session = = null) { 44. / / do something if session does not exist 45. } else { 46. / / do something if session exists 47. } To implement the design intent, which statement must be inserted at line 42?
10.
Which interface must a class implement so that instances of the class are notified after any object added to a session?