public void init(FilterConfig filterConfig) throws ServletException {
   super.init(filterConfig);
   String encodingParam = filterConfig.getInitParameter("encoding");
   if (encodingParam != null && encodingParam.trim().length() != 0) {
     encoding = encodingParam;
   }
 }
 @Override
 public void init(FilterConfig filterConfig) throws ServletException {
   // TODO Auto-generated method stub
   super.init(filterConfig);
   System.out.println("-------------------------------------------------");
   // cnaplicaction.put("imageDomain", imageDomain);
   // cnaplicaction.put("cssDomain", cssDomain);
 }
 @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);
 }
 public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
     throws IOException, ServletException {
   request.setCharacterEncoding(encoding);
   super.doFilter(request, response, chain);
 }