Please clarify my following doubts frm the mentioned exam:
Q47. wht does option C means:"A session may become invalid as a result of a specific call by a servlet." One can invoke request.getSession().invalidate() and request.getSession().setMaxInactiveInterval(0) to destroy a session. Assume request is of type HttpServletRequest.
I hope thats not too much for you all.... If anyone( probability is very low) does not have HFSJ..i will post the specified questions.
Q19. When you call request.getParameterNames() method, you will get Enumeration as a return value and the Enumeration will store all the parameter names(not the parameter values) that were sent as part of the request.
so after calling request.getParameterNames(),you will iterate through the Enumeration to get all the parameter names one by one and once you get the parameter names then you can call the request.getParameter(String parameterName) method to get the actual value of the parameter.
Q 47. Option D means you can call invalidate() method from a servlet to invalidate the session.
Joined: Sep 08, 2005
Thanks Connie & Ganesh for the clarifications.
Please help me for Ques 22,55& 63 also.
Connie Ky Leung
Joined: Jan 29, 2006
For Q22, option D is not JSP code , it is code written in Java language