コード例 #1
0
 @Override
 public void doFilter(ServletRequest arg0, ServletResponse arg1, FilterChain arg2)
     throws IOException, ServletException {
   HttpServletRequest request = (HttpServletRequest) arg0;
   // HttpServletResponse response = (HttpServletResponse) arg1;
   ServletContext servletContext = getServletContext();
   @SuppressWarnings("unused")
   String ctx = servletContext.getServletContextName();
   // TODO Auto-generated method stub
   request.setAttribute("imageDomain", imageDomain);
   request.setAttribute("cssDomain", cssDomain);
   request.setAttribute("jsDomain", jsDomain);
   request.setAttribute("sbglpath", sbglpath);
   request.setAttribute("webbaseurl", webbaseurl);
   request.setAttribute("strutsaction", strutsaction);
   super.doFilter(request, arg1, arg2);
 }
コード例 #2
0
 public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
     throws IOException, ServletException {
   request.setCharacterEncoding(encoding);
   super.doFilter(request, response, chain);
 }