Solved

Get HTTP status code in Filter

Posted on 2006-11-17
4
1,090 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
  • 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 50 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
The viewer will learn how to implement Singleton Design Pattern in Java.

706 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now