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

Moderator: admin

Post Reply
rlrao1987
Posts: 5
Joined: Mon Jan 27, 2014 7:59 am
Contact:

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

Post 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);

admin
Site Admin
Posts: 10384
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post by admin »

There is no getRequestDispatcher method in HttpServletRequest. It is there in ServletContext.

Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests