public class FirstServlet extends HttpServlet {
@Override
protected void doGet(HttpServletRequest req,
HttpServletResponse resp)
throws ServletException, IOException {
ServletContext context = getServletContext();
RequestDispatcher dispatcher =
context.getRequestDispatcher("/servlets/SecondServlet");
}
}