Hi,
>ok...bear with my skill level here...you're suggesting the
Authentication
>filter and monitor filter would be separate servlets? Then when the
user
No. I'm suggesting they be proper filters, per the servlet spec v2.3.
Specifically, you'd have two things that implement javax.servlet.filter:
public class MyAuthenticationFilter
implements Filter {
...
}
public class MyMonitorFilter
implements Filter {
...
}
And then in your web.xml:
<web-app>
...
<filter>
<filter-name>MyAuthenticator</filter-name>
<filter-class>com.mycompany.MyAuthenticationFilter</filter-class>
</filter>
<filter>
<filter-name>MyMonitor</filter-name>
<filter-class>com.mycompany.MyMonitorFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>MyAuthenticator</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>MyMonitor</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
...
<servlet>
<servlet-name>MyMappedServlet</servlet-name>
<servlet-class>com.mycompany.MyServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>MyMappedServlet</servlet-name>
<url-pattern>/MyMappedServlet</url-pattern>
</servlet-mapping>
...
</web-app>
>typed the www.whatever.org/, which one would be invoked? What would
occur
>if the user typed www.whatever.org/MyServlet directly before the
>authenticator has authenticated the user? Does the authenticator and
the
>monitor both recieve a request when a user types www.whatever.org?
Requests for your servlet would be intercepted by both filters before
(and after) the servlet gets them. If you need help on the filter
design / implementation, post that question and we'll be glad to help ;)
Yoav Shapira
Millennium ChemInformatics
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>