What is java Filter ? With examples.
What is java Filter ? With examples ... A filter is nothing but java class; A filter offers a useful way of performing filtered functionality in a java web application. Typically, filters do not generate content themselves, although in this example, the filter will generate some minimal content to show how it is called. A filter implements the javax.servlet .Filter interface . The primary filter functionality is implemented by the doFilter() method of the filter. Method Summary void destroy () Called by the web container to indicate to a filter that it is being taken out of service. void doFilter ( ServletRequest request, ServletResponse response, FilterChain chain) The doFilter method of the Filter is called by the container each time a request/response pair is passed through the chain due to a client...