Howdy,

>code in the servlet.  However, "Core Servlets" does not describe how to
use
>filters (that I know of).  Is there a reference for this technique

This article provides a good overview with some examples:
http://www.javaworld.com/javaworld/jw-06-2001/jw-0622-filters.html

>out from using getDispatcher().forward() etc but if it is a specific
>technique then where can I learn more?

The key concept when filtering is the chain.  Your filter is part of the
chain, and gets called twice for each request (if the request URL
pattern matches the URL pattern for your filter as defined in web.xml):
once before the requested resource (servlet or JSP for example) and once
after.  The full details are in the servlet spec, SRV 6.

Start playing, and post some specific questions and code when you have
them ;)

Yoav Shapira
Millennium ChemInformatics

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to