File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes How I can ensure that a filter will only apply on POST request and not GET Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "How I can ensure that a filter will only apply on POST request and not GET" Watch "How I can ensure that a filter will only apply on POST request and not GET" New topic
Author

How I can ensure that a filter will only apply on POST request and not GET

raminaa niilian
Ranch Hand

Joined: Jul 14, 2005
Posts: 551
Hi
Thank you for reading my post
Is it possible to configure a filter to workonly when request is from POST type? Filter should ignore other kind of requsts.
Thank you very much.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

See:
http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/http/HttpServletRequest.html#getMethod()


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How I can ensure that a filter will only apply on POST request and not GET