Example usage for org.springframework.web.bind.annotation RequestMethod GET

List of usage examples for org.springframework.web.bind.annotation RequestMethod GET

Introduction

In this page you can find the example usage for org.springframework.web.bind.annotation RequestMethod GET.

Prototype

RequestMethod GET

To view the source code for org.springframework.web.bind.annotation RequestMethod GET.

Click Source Link

Usage

From source file:progetto.informatica.ControllerMain.java

@RequestMapping(value = "/event", method = RequestMethod.GET)
public String event() {
    return "event";
}

From source file:com.tsg.sitemapwebappmvc.controller.InterestCalcController.java

@RequestMapping(value = "/InterestCalcController", method = RequestMethod.GET)
public String displayTipForm(HttpServletRequest req, Model model) {
    return "interestcalc";

}

From source file:com.tsg.sitemapwebappmvc.controller.TipCalcController.java

@RequestMapping(value = "/TipCalcController", method = RequestMethod.GET)
public String displayTipForm(HttpServletRequest req, Model model) {
    return "tipcalc";

}

From source file:com.ironyard.controller.mvc.PagesController.java

@RequestMapping(value = "/mvc/prop/find", method = RequestMethod.GET)
public String showFindHomePage() {
    return "redirect:" + finderPage + ".jsp";
}

From source file:com.onclave.testbench.RESTful.SinglePageApplication.SPARoutingController.java

@RequestMapping(value = "/admin/views/spa/users", method = RequestMethod.GET)
public String serveSPAUsersView() {
    return "/spa/users";
}

From source file:com.wury.app.controller.LoginController.java

@RequestMapping(value = "login-fail", method = RequestMethod.GET)
public String loginFail(RedirectAttributes attributes) {
    attributes.addFlashAttribute("success", false);
    return "redirect:login";
}

From source file:de.lgblaumeiser.ptm.rest.AnalysisRestController.java

@RequestMapping(method = RequestMethod.GET, value = "/{analyzerId}/{param}")
Collection<Collection<Object>> runAnalysis(@PathVariable String analyzerId, @PathVariable String param) {
    return services.analysisService().analyze(analyzerId.toUpperCase(), asList(param));
}

From source file:com.mohit.program.controller.login.AdministratorLogin.java

@RequestMapping(method = RequestMethod.GET)
public String doGet() {
    return "admin/login";
}

From source file:json.AdminController.java

@RequestMapping(value = "/getAdminListService", method = RequestMethod.GET, produces = "application/json")
public @ResponseBody ArrayList<Admin> getAdmins() {
    Connection conn = null;/* ww  w.java2s. c o  m*/
    Statement stmt = null;
    ResultSet rs = null;
    ArrayList<Admin> adminList = new ArrayList();

    try {
        //Set up connection with database
        conn = ConnectionManager.getConnection();
        stmt = conn.createStatement();

        //Execute sql satatement to obtain account from database
        rs = stmt.executeQuery("select * from admin;");

        while (rs != null && rs.next()) {
            String id = rs.getString(1);
            String password = rs.getString(2);
            String email = rs.getString(3);
            String name = rs.getString(4);
            String role = rs.getString(5);

            adminList.add(new Admin(id, password, email, name, role));
        }
    } catch (SQLException ex) {
        ex.printStackTrace();
    } finally {
        ConnectionManager.close(conn, stmt, rs);
    }

    return adminList;
}

From source file:com.sapito.operaciones.OperacionesController.java

@RequestMapping(value = "operaciones/produccion", method = RequestMethod.GET)
public String produccion(Model model) {
    return "Operaciones/produccionView";
}