This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
I think here dis has value null.so it does not satisfy the if condition so it execute the further code and get a object of PrintWriter and output the message "Output after menu.jsp".
i think answer is d. since ServletContext.getRequestDispacher("menu.jsp") should start with "/menu.jsp"
Regards Sravanthi
pradeep singh
Ranch Hand
Joined: Oct 23, 2007
Posts: 339
posted
0
Hi Vijaya Sravanthi
i think answer is d. since ServletContext.getRequestDispacher("menu.jsp") should start with "/menu.jsp"
Here menu.jsp in RequestDispatcher method is not start with "/" so this method returns null and so dis has null value.I think no error generate.Please correct me if i am wrong.