Here can i use RequestDispatcher view = getServletContext().getRequestDispatcher("result.jsp") or would it give me an error..saying the location has to start from root ??;
posted 5 years ago
you get a RequestDispatcher in two ways from the request or from the context. With the servlet context you MUST include the foward slash because you can't specify a path relative to the current resource (the one that received this request.