@@ -0,0 +1,1353 @@
+package fr.imie.tp.jsp;%0A%0Aimport java.io.IOException;%0Aimport javax.servlet.DispatcherType;%0Aimport javax.servlet.Filter;%0Aimport javax.servlet.FilterChain;%0Aimport javax.servlet.FilterConfig;%0Aimport javax.servlet.ServletException;%0Aimport javax.servlet.ServletRequest;%0Aimport javax.servlet.ServletResponse;%0Aimport javax.servlet.annotation.WebFilter;%0A%0A/**%0A * Servlet Filter implementation class CharsetFilter%0A */%0A@WebFilter(dispatcherTypes = %7B%0A%09%09%09%09DispatcherType.REQUEST, %0A%09%09%09%09DispatcherType.INCLUDE%0A%09%09%7D%0A%09%09%09%09%09, urlPatterns = %7B %22/*%22 %7D)%0Apublic class CharsetFilter implements Filter %7B%0A%0A    /**%0A     * Default constructor. %0A     */%0A    public CharsetFilter() %7B%0A        // TODO Auto-generated constructor stub%0A    %7D%0A%0A%09/**%0A%09 * @see Filter#destroy()%0A%09 */%0A%09public void destroy() %7B%0A%09%09// TODO Auto-generated method stub%0A%09%7D%0A%0A%09/**%0A%09 * @see Filter#doFilter(ServletRequest, ServletResponse, FilterChain)%0A%09 */%0A%09public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException %7B%0A%09%09%0A%09%09// Pour garantir que le code html soit en utf8%0A%09%09request.setCharacterEncoding(%22UTF-8%22);%0A%0A%09%09// pass the request along the filter chain%0A%09%09chain.doFilter(request, response);%0A%09%7D%0A%0A%09/**%0A%09 * @see Filter#init(FilterConfig)%0A%09 */%0A%09public void init(FilterConfig fConfig) throws ServletException %7B%0A%09%09// TODO Auto-generated method stub%0A%09%7D%0A%0A%7D%0A

Add CharsetFilter