Answer Posted / puneet
The ans cudhave been more precise: let me try :)
The filters are basically used when we need to change the
response sent back to the client like implementing
restrictions to few of the resources dependent on the user
who logs in like we dnt need to show few pages to few users
from a website then we need to make that logic in a new
class which implements filter interface and need to write
down the logic in the dofilter method which takes the
response and request objects which can be altered and
changed and the object of this class can be called dependent
on the condition of met on which we want to implement the
restrictions.
We can also use this interface to change the behavior of the
response.
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
Can a class be private in java?
What are the differences between getting and load method?
What is class forname?
What do you mean by access modifier?
Explain the importance of join() method in thread class?
Are global variables initialized to zero?
What is role of void keyword in declaring functions?
Can a class have multiple superclasses?
there are N number of matchboxes numbered 1...N.each matchbox contain various number of stick.Two player can alternatevely pick some amount of stick from the higest stick containing box . The player is condidered win if there is no stick after his move.Find the final move so that the move player win. Note:In case the number of stick is equal ,pick the stick from the higest numbered box.
why Java does not support multiple inheritances?
Hi Anyone know the model / questions of the Federal bank sample questions for the post of Specialist Officers - Programmers. Please post if anyone have..
What is pass by value?
what are the states associated in the thread? : Java thread
Can static methods access instance variables in java?
a thread is runnable, how does that work? : Java thread