Answers Are in The End of File: Enterprise Java Questions and Answers Set 3
Answers Are in The End of File: Enterprise Java Questions and Answers Set 3
21. Which method of the servlet is/are called several times in its life?
(a) init()
(b) doPost()
(c) destroy()
(d) Both (a) and (b) above
(e) Both (a) and (c) above.
23. Which object is used to forward the request processing from one servlet to another?
(a) ServeltContext
(b) ServletConfig
(c) RequestDispatcher
(d) ResponseDispatcher
(e) ResponseRedirect.
(a) Page
(b) Session
(c) Request
(d) Application
(e) Global.
25. Which of the following allows substitution of code to occur at the translation time in
a JSP page?
26. Which of the following property of Java Bean represents a single value?
27. Which of the following is used to redirect the response from a servlet to a JSP page?
(a) response.sendRedirect()
(b) request.sendRedirect()
(c) request.forward()
(d) response.forward()
(e) request.dispatch().
29. Which of the following is not true for <jsp:useBean> tag in JSP page?
I. Request.
II. Session.
III. Vector.
IV. In.
Ans Explanation
21. B dopost() method of the servlet is called several times in its life.
29. D jsp:use bean tag is not used to execute the body of tag if any.