Take the 2-minute tour ×

I have a filter in one of the referenced libraries. I have configured this filter in web.xml of my application.

Consider I have the filter in abcd.jar.

I am configuring it to my web.xml as

      <param-value>A message for you!</param-value> 

When browsed the url containing the match localhost:8080/test/filter2.jsp. I could access this correctly. But not sure whether my filter is called successfully or not.

I cannot test it by adding the print statements in the filter class because it is from referenced libraries.

Is there any other way to test it.

share|improve this question
Is there a condition on which filter acts differently then normal? Like not logged-in or invalid number of parameters, etc.... use that condition to check if its working. –  Harry Joy Feb 25 '13 at 7:13
@HarryJoy. I think there is no such condition. Can I change the name of the parameter and check.. –  Patan Feb 25 '13 at 7:16
Then what does it filter? which kind of request does it filter? make a request that doesn't pass the filter condition. –  Harry Joy Feb 25 '13 at 7:17
Which IDE are you using? –  user517491 Feb 25 '13 at 7:20
@HarryJoy.This is the filter applied to soap based web service. It is adding some MimeHeaders to soap request. –  Patan Feb 25 '13 at 7:22
show 2 more comments

1 Answer

up vote 0 down vote accepted

Create method break-point in your third party jar file. And then wait to see if the break-point is triggered or not.

For creating the break-point in third party library in eclipse, open the class file in your jar in project explorer, then open the outline, right click and add the break-point.

share|improve this answer
Thank you for the answer –  Patan Feb 25 '13 at 10:04
add comment

Your Answer


