Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Get HTTP status code in Filter

Posted on 2006-11-17
4
Medium Priority
?
1,137 Views
Last Modified: 2012-08-13
I am writing a Servlet Filter for my web application.
How can I get the return status code from request / response ?
0
Comment
Question by:glogin
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 23

Expert Comment

by:Ajay-Singh
ID: 17963491
you can use,

response.getStatus()
0
 

Author Comment

by:glogin
ID: 17963570
No this API in HTTPServletResponse and ServletRespons.
Which "response" ?
0
 
LVL 23

Accepted Solution

by:
Ajay-Singh earned 200 total points
ID: 17963647
org.apache.coyote.Response, thats the class you see on the Filter
0
 

Expert Comment

by:nitingautam
ID: 22887528
Can you provide any snippet..
Will this also works in WebSphere?
0

Featured Post

The top UI technologies you need to be aware of

An important part of the job as a front-end developer is to stay up to date and in contact with new tools, trends and workflows. That’s why you cannot miss this upcoming webinar to explore the latest trends in UI technologies!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses

704 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question