File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Filter only GET Methods Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Filter only GET Methods" Watch "Filter only GET Methods" New topic

Filter only GET Methods

elvadas nono

Joined: Jul 04, 2011
Posts: 12
Hi all,
How coan I filter only http Method GET of an url-pattern using DD config?
With securtity Constraint for example you see that it is possible to apply security constraint only to the POST Method for example using

Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
Not declaratively. You do have access tot he request object though.

So much trouble in the world -- Bob Marley
I agree. Here's the link:
subject: Filter only GET Methods
It's not a secret anymore!