1 2 3 4 5 6 7 8 9 10 11 12
| @WebServlet("/Redirection")
public class RedirectionVersFormulaireAjoutTerrain extends HttpServlet
{
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
response.setStatus(HttpServletResponse.SC_MOVED_TEMPORARILY);
response.setHeader("Location", request.getContextPath()+"/
formulaireAjoutTerrain.html");
}
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
doGet(request, response);
}
} |
Partager