01: package ru.emdev.EmForge.web;
02:
03: import javax.servlet.http.HttpServletRequest;
04: import javax.servlet.http.HttpServletResponse;
05:
06: import org.apache.commons.logging.Log;
07: import org.apache.commons.logging.LogFactory;
08: import org.springframework.web.servlet.ModelAndView;
09: import org.springframework.web.servlet.mvc.Controller;
10:
11: public class ErrorPageController implements Controller {
12: protected final Log log = LogFactory.getLog(getClass());
13:
14: public ModelAndView handleRequest(HttpServletRequest request,
15: HttpServletResponse response) throws Exception {
16:
17: ModelAndView mv = new ModelAndView("error");
18:
19: return mv;
20: }
21:
22: }
|