[thelist] new to servlets

Marcus Andersson marcus at bristav.se
Tue Oct 19 13:47:49 CDT 2004


Matt Warden wrote:
> You cannot "include" a servlet in another servlet. 

Huh?

public void doGet(HttpServletRequest req, HttpServletResponse res)
   throws ... {

   RequestDispatcher disp = req.getRequestDispatcher("pathToOtherSerlvet");
   disp.include(req, res); // you could forward as well...
}

/Marcus


More information about the thelist mailing list