web.Controller.AccessDeniedController.java Source code

Java tutorial

Introduction

Here is the source code for web.Controller.AccessDeniedController.java

Source

/*
 * 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 web.Controller;

/**
 *
 * @author MiChiamoG.A
 */
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.Controller;

/**
 *
 * @author MiChiamoG.A
 */
public class AccessDeniedController implements Controller {

    // gestion de la requte
    public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception {

        return new ModelAndView("accessdenied");
    }
}