servlet service and include  
Author Message
kmat69





PostPosted: 2004-1-4 10:28:00 Top

java-programmer, servlet service and include 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