Thank you very much!
This is what i was assking for ! :-)))
Stanislav
----- Original Message Follows -----
> On Fri, 2006-05-05 at 15:19 +0200, Stanislav wrote:
> > Hi!
> >
> > I want to do some check every time when java file "starts". How can i do
> > this? I think that is
> > posible with filter in web.xml, but i dont know how to do this :-(
>
> in web.xml put these tags:
>
> <filter>
> <filter-name>check</filter-name>
> <filter-class>packageName.CheckFilter</filter-class>
> </filter>
>
> <filter-mapping>
> <filter-name>check</filter-name>
> <url-pattern>*.do</url-pattern>
> </filter-mapping>
>
>
> This sets up a filter to run the doFilter method of the CheckFilter
> class on all requests with a .do extension. CheckFilter is like this:
>
> public final class CheckFilter implements Filter {
>
> public void doFilter(ServletRequest request,
> ServletResponse response,
> FilterChain chain)
> throws IOException, ServletException {
>
>
> // run your check here
>
> }
>
> }
>
>
> Dave
>
> >
> > Tnx,
> > Stanislav
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]