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?
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?
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?
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?
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?