I think I've been through this myself, and conclusion is that there is
nothing magic. As far as URLs in the server context (i.e. URLs that are
passed to the servlet API *on the server*) are concerned, its all in the
specs (chapter 10 of servlet 2.2). Concerning URLs passed from the client, I
suppose its in the HTTP protocol specs.
Note that sendRedirect follows the rules of case 2, as the target URL is
sent back to the client and then requested from there.

HTH


-----Original Message-----
From: Kit Cragin <[EMAIL PROTECTED]>
To: Orion-Interest <[EMAIL PROTECTED]>
Date: Freitag, 22. September 2000 22:13
Subject: what are the rules for urls in a web-app?


>Has anyone figured out the rules for URLs wrt relative path names in Orion?
>They seem different in the following conditions:
>
>* url in html page directly
>* url in jsp
>* url in html page forwarded to by a servlet
>* url in jsp forwarded to by a servlet
>* url in html page redirected to by a servlet
>* url in jsp redirected to by a servlet
>
>I have tried the following, and can usually get something working in most
>cases, but not consistently:
>
>* url with relative path several different ways:
> ./<path>
> <path>
> ../<path>
> etc
>* url rooted with / (excluding the root as specified in default website)
>* url rooted with / (includeing root as specified in default website)
>* fully qualified
>
>And it gets more complicated with servlet mappings...
>
>
>Anyone?
>
>Thanks,
>
>Kit Cragin
>VP of Product Development
>Mongoose Technology, Inc.
>www.mongoosetech.com
>
>


Reply via email to