開発メモ

開発用のメモです。

Tomcat 7.0 / EncodingFilter By seasar2

package jp.mirageworld.crs.filter;

import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebFilter;
import javax.servlet.annotation.WebInitParam;

import org.apache.log4j.Logger;
import org.seasar.extension.filter.EncodingFilter;

@WebFilter(
        urlPatterns = "/*",
        initParams = {
                @WebInitParam(name = "encoding", value = "UTF-8")
        },
        filterName = "filter002"
        , displayName = "filter002")
public class WebEncodingFilter extends EncodingFilter {

    protected final Logger logger = Logger.getLogger(getClass());

    @Override
    public void init(FilterConfig config) throws ServletException {
        logger.info(getClass().getSimpleName());
        super.init(config);
    }

}
Twitter: @asahina_alice