This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
Anyplace where the JSTL or EL does not meet the needs for your display markup, or that you want to package some re-usable code or components.
Hi Bear, Just another quick question. What are the scenarios I would need a filter or a set of filters? Is it just to get the user info or can I do something else. When my Web page is opened in some x country. I would like to post adds specific to that local. Can this be achieved using filters?
Hi , we can do using filters, when the particular is hitting by the user, then we can use the filters(in filters we will get the local and we will prepare the dynamic popup's in the opening page or requested page,here we will use context params or some properties file to prepare the dynamci hyper links...
Originally posted by C Vivek: Hi Bear, Just another quick question. What are the scenarios I would need a filter or a set of filters? Is it just to get the user info or can I do something else. When my Web page is opened in some x country. I would like to post adds specific to that local. Can this be achieved using filters?
Many Thanks, Vivek
Filters are ideal for situations where you want to apply behavior across multiple pages. A common example is a compression filter that gzips the response of your pages to improve performance for users with slow connections.
Another would a validation filter that removes any HTML markup from input fields before the request actually reaches the servlet.
In both cases, this behavior can be applied without having to touch the original pages.