K
kmat
Hi,
inside the service method of a Servlet1 I have the following code
RequestDispatcher rd = request.getRequestDispatcher("Servlet2");
rd.include(request,response);
in the service method of Servlet2 the following is the line of code,
request.setAttribute("hi", "hello");
But the include call does not activate the service method in Servlet2.
If I change the method from service to doGet in both servlets it works?
In short why include does not work in service()
mat
inside the service method of a Servlet1 I have the following code
RequestDispatcher rd = request.getRequestDispatcher("Servlet2");
rd.include(request,response);
in the service method of Servlet2 the following is the line of code,
request.setAttribute("hi", "hello");
But the include call does not activate the service method in Servlet2.
If I change the method from service to doGet in both servlets it works?
In short why include does not work in service()
mat