Java tutorial
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package tarefas.controller; import javax.servlet.http.HttpSession; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; /** * * @author caoc1 */ @Controller public class redirectController { @RequestMapping("/redirCreateFillingPost_admin.htm") public String redirCreateFillingPost() { return "createFillingPost_admin"; } @RequestMapping("/redirSchedulleFilling_admin.htm") public String redirSchedulleFilling() { return "schedule_Filling_admin"; } @RequestMapping("/redirLogout.htm") public String redirLogout(HttpSession session) { session.invalidate(); return "index"; } @RequestMapping("/redirCreateFillingRequest_user.htm") public String redirCreateFillingRequest(HttpSession session) { return "createFillingRequest_user"; } }