Page 1 of 1

About Question com.enthuware.ets.scwcd.v5.2.233 :

Posted: Mon Mar 16, 2015 11:10 am
by rlrao1987
How is pageContext.forward("page2.jsp"); valid?
Why is the answer not the following:
RequestDispatcher rd = request.getRequestDispatcher("page2.jsp"); rd.forward(request, response);

Re: About Question com.enthuware.ets.scwcd.v5.2.233 :

Posted: Mon Mar 16, 2015 8:59 pm
by admin
There is no getRequestDispatcher method in HttpServletRequest. It is there in ServletContext.