----- Original Message -----
From: "Mark Galbreath" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 12, 2001 1:03 AM
Subject: Re: url mapping


> I haven't used Resin, but in general, when you map a directory to a
servlet
> instance in web.xml, the webserver/container is going to send every HTTP
> request to the servlet to which that directory is mapped.

of course, but requests to subdirectories is also handled by the servlet
(request to http://localhost/jgr/file.html is also handled by
http://localhost/jgr --> i cannot request anything that is "sub" of /jgr !)

> You need to put
> the static HTML file into the webserver document root.
>

i know that, but actually it should also be possible to put files in a
*subdirectory* of the document root and request them, shouldn't it?
my document root is <resin-home>/webapps/jgr (index.html of this directory
should be displayed if i enter http://localhost/jgr, but my servlet is
mapped to that URL, so i see the servlet, that's what i want), so I should
receive the file saved at <resin-home>/webapps/jgr/dir/file.html if i
request http://localhost/jgr/dir/file.html, but i see the servlet mapped to
http://localhost/jgr , that's what i don't want.


> Cheers!
> Mark
>

i would appreciate any comment, since i'm struggling with this for a hole
week now, this really makes me sick!

michael weller

> ----- Original Message -----
> From: "Michael Weller" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, July 11, 2001 1:54 PM
> Subject: url mapping
>
>
> > hi everybody,
> >
> > i have a servlet mapped to http://localhost/jgr and a static html file
> > which should be displayed if i request
> > http://localhost/jgr/aStaticFile.html. but if i request this static file
> > all i receive is http://localhost/jgr i.e. the URI the servlet is mapped
> > to. same thing happens if i put the static file in another subdirectory,
> > e.g. http://localhost/jgr/aDir/aStaticFile.html, still
> > http://localhost/jgr is shown. all i can receive are servlets that i
> > mapped to an URL.
> > i have another webapplication with almost the same web.xml (only other
> > servlets are defined and mapped to other URIs), but here i CAN reach any
> > static file.
> > how is that possible?
> >
> > as servlet container i use caucho resin 2.0.1 and i already asked this
> > question to the resin list at caucho.com but i didn't get any replies,
> > now i hope to get some here.
> >
> > thanks in advance.
> >
> > Michael Weller
> >
> >
>
___________________________________________________________________________
> > 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