Example usage for javax.servlet.http HttpServletRequest getRequestDispatcher

List of usage examples for javax.servlet.http HttpServletRequest getRequestDispatcher

Introduction

In this page you can find the example usage for javax.servlet.http HttpServletRequest getRequestDispatcher.

Prototype

public RequestDispatcher getRequestDispatcher(String path);

Source Link

Document

Returns a RequestDispatcher object that acts as a wrapper for the resource located at the given path.

Usage

From source file:com.netcracker.financeapp.controller.agent.AgentAddServlet.java

@Override
protected void doGet(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
    request.getRequestDispatcher("agent/agentAdd.jsp").forward(request, response);

}

From source file:org.blanco.gae.blog.BlogServlet.java

public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException {
    try {//w  ww.  ja  v  a 2  s .  c o  m
        req.getRequestDispatcher("blog_form.jsp").forward(req, resp);
    } catch (ServletException e) {
        e.printStackTrace(resp.getWriter());
    }
}

From source file:id.go.customs.training.gudang.web.BarangUploadServlet.java

@Override
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
    req.getRequestDispatcher("/WEB-INF/templates/jsp/barang/upload.jsp").forward(req, resp);
}

From source file:com.netcracker.financeapp.controller.bank_card.BankCardAddServlet.java

@Override
protected void doGet(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
    request.getRequestDispatcher("bankCard/bankCardAdd.jsp").forward(request, response);

}

From source file:furkan.app.tictactoewebsocket.TicTacToeServlet.java

private void view(String view, HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
    request.getRequestDispatcher("/WEB-INF/jsp/view/" + view + ".jsp").forward(request, response);
}

From source file:com.netcracker.financeapp.controller.type.typeAddServlet.java

@Override
protected void doGet(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
    request.getRequestDispatcher("type/typeAdd.jsp").forward(request, response);

}

From source file:com.parallax.server.blocklyprop.servlets.PasswordResetRequestServlet.java

@Override
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
    req.getRequestDispatcher("WEB-INF/servlet/password-reset/reset-request.jsp").forward(req, resp);
}

From source file:com.parallax.server.blocklyprop.servlets.ConfirmRequestServlet.java

@Override
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
    req.getRequestDispatcher("WEB-INF/servlet/confirm/confirm-request.jsp").forward(req, resp);
}

From source file:net.codejava.spring.HomeController.java

@Override
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
    System.out.println("Reached:--->" + req.getContextPath());
    req.getRequestDispatcher("/tools/url").forward(req, resp);
}

From source file:io.muic.ooc.webapp.servlet.LoginServlet.java

@Override
protected void doGet(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
    RequestDispatcher rd = request.getRequestDispatcher("WEB-INF/login.jsp");
    rd.include(request, response);/* w ww .  jav  a2  s . c  o m*/
}