Hello Erik, Filters were introduced in the Servlet 2.3 specification. Your book probably only covers Servlet 2.2. Tomcat-4.x.x supports the Servlet 2.3 spec so, Filters are doable. See the following resources for starters...
Essentials of Filters http://java.sun.com/products/servlet/Filters.html or http://java.sun.com/products/servlet/Filters.pdf Jason Hunter's Article on Filters http://www.javaworld.com/javaworld/jw-06-2001/jw-0622-filters.html http://www-106.ibm.com/developerworks/java/library/j-tomcat/?open&l=101,t=grj,p=TomcatTricks http://www.orionserver.com/tutorials/filters/introduction/ Jake Wednesday, December 11, 2002, 11:06:22 AM, you wrote: PE> I have been learning about servlet programming from "Core Servlets". I like this book. But, since subscribing to this list, I have seen mention of "filters". In a message from Yoav Shapira I PE> was recommended to use "filters" to validate form data before passing it to a servlet. This seems to me a cleaner means of doing it, as opposed to putting form-validation code in the servlet. PE> However, "Core Servlets" does not describe how to use filters (that I know of). Is there a reference for this technique somewhere, or is it a generic term for "a servlet that intercepts, acts PE> upon, and passes along data" ? If it is the latter then I can figure it out from using getDispatcher().forward() etc but if it is a specific technique then where can I learn more? PE> My Tomcat container is v. 4.0.6. PE> Erik PE> -- PE> To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> PE> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- Best regards, Jacob mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
