I wonder how Cocoon (= a servlet) should influence servlet container behaviour? Isn't the filtering independent on the things the servlet does? Are you sure that not two requests are sent (e.g. using Adobe PDF plugin with IE)?

Joerg

On 27.11.2003 11:41, Roman Hrivik wrote:
Hi

I put simple test filter before cocoon servlet.

But I have a problem with it, because my Filter runs twice.
I run Cocoon on oracle OC4J.
There is just simple System.out.print in my filter just count the runs

        int runs=0;
        public void doFilter(
                ServletRequest request,
                ServletResponse response,
                FilterChain chain)
                throws IOException, ServletException {

        System.out.println("========= TestFilter " + ++runs + "
=========");
        chain.doFilter(request, response);

}


When I tested filter on other servlets than cocoon everything was OK. But when I mapped my filter to Cocoon servlet my filter runs twice.

Can anybody help ?

Thks.

Roman


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to