Link to home
Start Free TrialLog in
Avatar of glogin
glogin

asked on

Get HTTP status code in Filter

I am writing a Servlet Filter for my web application.
How can I get the return status code from request / response ?
Avatar of Ajay-Singh
Ajay-Singh

you can use,

response.getStatus()
Avatar of glogin

ASKER

No this API in HTTPServletResponse and ServletRespons.
Which "response" ?
ASKER CERTIFIED SOLUTION
Avatar of Ajay-Singh
Ajay-Singh

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Can you provide any snippet..
Will this also works in WebSphere?