Thanks for you response, that was the info I needed.

But, I do have another issue.  After the servlet is called, is there a way
to have to the original clients's request for some web page continued.  For
example:

Lets say the client makes the following call...
  http://www.website.com/protected/webpage.html

Lets say directory "protected" has a servelt mapped to it.

After the servlet is run, how would I have the web server continue with the
request to fetch the webpage.html page ?
I can't use redirect, because then the servelt gets called again and I end
up in an infinite loop ?

Thanks for your help






> -----Original Message-----
> From: james.todd [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, November 04, 1999 11:20 PM
> To:   SERVLET-INTEREST
> Subject:      Re: servlet watching a directory
>
> [not so much for physical directories but more for request uris]
>
> you should check out servlet 2.2, section 1.0 "Mapping Requests
> to Servlets":
>
>     http://java.sun.com/products/servlet/2.2
>
> in short, you can assign a servlet (or jsp) to handle all inbound
> requests for, say, /bop prefaced paths ... in effect achieving
> what i believe your looking for. there are other mapping options
> which makes this feature pretty compelling in my book. cool
> mojo!
>
> side note: the above infomration is valid within the context of a
> web application (servlet 2.2, section 9) which will manage it'sown
> request uri space. the request mapping stuff is relevant within any
> one deployed web application context.
>
> hope this helps,
>
> - james
>
> "james.h.oconnor" wrote:
>
> > Is there a way to have a designated serlvet run every time a web page
> from
> > under some directory is loaded ?
> > This is sort of similiar to the way basic authentication would work when
> a
> > resource is protected.  Its just that instead of having a password/login
> > form pop up, a servlet would alway be run.
> >
> >
> __________________________________________________________________________
> _
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> > of the message "signoff SERVLET-INTEREST".
> >
> > Archives: http://archives.java.sun.com/archives/servlet-interest.html
> > Resources: http://java.sun.com/products/servlet/external-resources.html
> > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
> __________________________________________________________________________
> _
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to