users@glassfish.java.net

Re: Filters and Servlets

From: Dominik Dorn <dominik.dorn_at_gmail.com>
Date: Sat, 17 Apr 2010 17:34:37 +0200

you are mixing "filtering" of your data and filtering of your request.

You typically have this interaction
User -> browser -> webserver -> servlet container -> servlet-filters
-> servlet -> service layer -> data access layer -> database

filtering of the data with the criterias happens in the area of
servlet down to the database.

If you want to do some logic before a servlet is
invoked or after it did its work, e.g. filter out malicious code (xss
attacks) or
reformat the response (e.g. tidy the html), a servlet-filter would be
the perfect
place for this.

kr,
dominik



-- 
Dominik Dorn
http://dominikdorn.com
Eine [url=http://www.studyguru.eu]Ausarbeitung[/url] zu Deinem Seminarthema?
[url=http://www.studyguru.eu]Mitschrift[/url] von der letzten Vorlesung?
[url=http://www.studyguru.eu]Alte Prüfungen[/url]? Dass, und noch viel
mehr findest Du auf http://www.studyguru.eu ! Tausche Deine
Lernunterlagen noch heute!