Rehtron,

On 2011-06-18 7:53, Rehtron wrote:
I need to use the servlet  to control this response and accept/reject the
request before receiving the request content, Is there anyone could give me
some advice?

as you noticed it's too late when your Servlet is invoked: The request is already acknowledged. You can use a Filter as mack Lu suggested or you could use a Valve, the following post [1] discusses the pros and cons. There's also a nice Tutorial on filters [2].

[1] http://blog.frankel.ch/tomcats-valve-an-alternative-to-filter
[2] http://java.sun.com/blueprints/corej2eepatterns/Patterns/InterceptingFilter.html

Simon


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to