Select 2 correct options. A.This will not compile. B.This will compile but will not work as expected. C.This code will work just fine. D.It will compile but not work properly if //1 is replaced with: RequestDispatcher rd = req.getRequestDispatcher("Login.jsp"); E.It will compile and will work properly if //1 is replaced with: RequestDispatcher rd = req.getRequestDispatcher("Login.jsp");
I have selected a and e is the Correct answer. because while using the getservletContext().getRequestDispatcher(); this method will not take the "RELATIVE " path. so that only i made it like that. but they said c and e is teh rite answer. Please Clear this doubt.I am looking for this.