Hi, If you forward a request in a
jsp to another page, then can you still call out.println()? Or will you get a runtime error?
Also if you do
out.println("1");
RequestDispatcher view = request.getRequestDispatcher("secondJSP.jsp");
view.forward(request,response);
out.println("2");
======
second.jsp:
out.println("in second jsp");
What will be outputted to the client?
a) 1 in second jsp 2
b) 1
c) 2
d) in second jsp
e) runtime error
and if you get a runtime error, then at which point is is thrown?
If i didnt have the line out.println("2"); would it still output "1 in second jsp"?