ServletRequestListener problem

I want one attribute to be added in request. Therefore I used ServletRequestListener listener for this. Now i have nearly 10 servlets in my app but the need of attribute addition in request is required in one servlet only. So is there any way to make this listener to make specific for only one servlet ?

sorry ... by mistake i wrote ServletResponseListener.
..
My question is the need of attributed to be added into request is arise in one servlet only then can't we make this ServletRequestListener specific to one servlet only ??? because it's method is getting called for request of each of the servlet.

here this code will run for all the servlet request and therefore here attribute will be added to the request object in all the servlets. What i want is i need this attribute to be added in only 1 servlet. can't i restrict this ServletRequestListener to work for any one specific servlet?

but if I implement ServletRequestListener in the servlet in which i require it then the overridden method of ServletRequestListener are not getting called whether i register the servlet as a listener in web.xml or not.

You aren't paying attention. If you want to add an attribute to the request in Servlet X, then simply write one line of code in the doGet or doPost method which adds that attribute. ServletRequestListener isn't helpful here so don't use it.

Person 1: How do I use this nutcracker to saw this board in half?
Person 2: You don't use a nutcracker, it's the wrong tool for the job.
Person 1: But the nutcracker doesn't work when I try to saw the board.
Person 2: You don't use a nutcracker, it's the wrong tool for the job.
Person 1: But when I try to saw the board with a nutcracker, it doesn't work.

Are you actually trying to set a scoped variable (attribute) onto the request, or are you just trying to learn how request listeners work (using a flawed example)?