[opencms-dev] It's trouble when add filter!

刘云 lysss713 at 163.com
Thu Jun 30 04:24:43 CEST 2005


hi all:
   
  I am having trouble with OpenCms + tomcat filters;
basically, when I add a filter to web.xml, 
web.xml follow:
<!-------------filter start----------------->
<filter>
		<filter-name>ResponseOverrideFilter</filter-name>
		<filter-class>org.displaytag.filter.ResponseOverrideFilter</filter-class>
	</filter>
	<filter-mapping>
		<filter-name>ResponseOverrideFilter</filter-name>
		<url-pattern>*.do</url-pattern>
	</filter-mapping>
	<filter-mapping>
		<filter-name>ResponseOverrideFilter</filter-name>
		<url-pattern>*.jsp</url-pattern>
</filter-mapping>
<!-------------filter end----------------->

Filter source is very simple , even if it does nothing.
Filter source follow:
<!-------------filter source start----------------->
public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain)
        throws IOException, ServletException
    {   // don't filter!
            filterChain.doFilter(servletRequest, servletResponse);
            return;
    }
<!-------------filter source end----------------->

It's showing wrog char(input is "êßMÄÏ", output is "¨¦??¨¦?????") for me,after I submited the form of jsp. But,

It's work fine,after I deleted the config of filter from web.xml.

Any ideas anyone? That's annoying.

Thanks,

David

¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡lysss713 at 163.com
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡2005-06-30


More information about the opencms-dev mailing list