aspose 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: 550
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
 
Similar Threads
Better way to check user session
read from httpRequest put into httpResponse in Filter?
Question about servlet filters
How I can cut the communication between client and server using a filter?
Another Filter Question