/** http://www-6.ibm.com/jp/developerworks/java/011116/j_j-tomcat.html */ package ushi.svt; import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public final class IEFilter implements Filter { private FilterConfig filterConfig = null; private ServletContext sc = null; public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { String browserDet = ((HttpServletRequest) request).getHeader("User-Agent").toLowerCase(); sc.log("ブラウザをチェックしています…" + browserDet); if (browserDet.indexOf("msie") != -1){ PrintWriter out = response.getWriter(); out.println("
"); out.println("