Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JSP Interest »

Re: Servlet vs. Filter

Guy Katz

2004-05-11


a filter is for filtering requests.
a servlet recieves the requests after filters have filtered them.
so the servlet should act as the controller. thee is some overlap and some
designs make filters do a small part of logic that should be in the
controller but no doubt the servlet should be the contoller.


-----Original Message-----
From: Bussie, Andre D [mailto:andre.d.bussie@(protected)]
Sent: Tuesday, May 11, 2004 4:20 PM
To: JSP-INTEREST@(protected)
Subject: Servlet vs. Filter


As a best practice what's the best approach a Servlet as the controller
or a Filter?

Any recommendations?



Andre' D. Bussie

Sourcing Rotational Program

MAC-MAR

532 Fellowship Rd

Moorestown, NJ 08057

856.787.3273

andre.d.bussie@(protected)>




===========================================================================
To unsubscribe: mailto listserv@(protected)
JSP-INTEREST".
For digest: mailto listserv@(protected)
DIGEST".

Some relevant archives, FAQs and Forums on JSPs can be found at:

http://java.sun.com/products/jsp
http://archives.java.sun.com/jsp-interest.html
http://forums.java.sun.com
http://www.jspinsider.com

===========================================================================
To unsubscribe: mailto listserv@(protected)".
For digest: mailto listserv@(protected)".

Some relevant archives, FAQs and Forums on JSPs can be found at:

http://java.sun.com/products/jsp
http://archives.java.sun.com/jsp-interest.html
http://forums.java.sun.com
http://www.jspinsider.com
©2008 junlu.com - Jax Systems, LLC, U.S.A.