1 16 package org.directwebremoting.servlet; 17 18 import java.io.IOException ; 19 20 import javax.servlet.http.HttpServletRequest ; 21 import javax.servlet.http.HttpServletResponse ; 22 23 import org.directwebremoting.extend.Handler; 24 import org.directwebremoting.util.Logger; 25 26 30 public class NotFoundHandler implements Handler 31 { 32 35 public void handle(HttpServletRequest request, HttpServletResponse response) throws IOException 36 { 37 log.warn("Page not found. pathInfo='" + request.getPathInfo() + "' requestUrl='" + request.getRequestURI() + "'"); 38 log.warn("In debug/test mode try viewing /[WEB-APP]/dwr/"); 39 40 response.sendError(HttpServletResponse.SC_NOT_FOUND); 41 } 42 43 46 private static final Logger log = Logger.getLogger(NotFoundHandler.class); 47 } 48 | Popular Tags |