thats an old story (see list archives). When it comes to sendRedirect, Orion
interprets "/" as denoting the current context root, whereas all other
servlet engines (including Tomcat, the J2EE reference impl) interpret it as
the server document root. When this issue was discussed a while ago, the
conclusion was that, even though the J2EE spec seems to endorse "document
root", the orion way was conceptually cleaner, because it is consistent with
the way "/" is interpreted in other places. Of course, this leaves us with a
nasty compatibility problem. I see 2 choices:
a) dont use sendRedirect. Use RequestDispatcher.forward() instead
b) do something like this:
if(servletConfig.getServletContext().getServerInfo().startsWith("Orion"))
...
else
...
good luck..
-----Original Message-----
From: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
To: Orion-Interest <[EMAIL PROTECTED]>
Date: Dienstag, 17. Oktober 2000 01:02
Subject: URL Pathing
>To Whom this may concern:
>
>I have written an application using java and jsp technologies that was
>developed around Caucho's Resin web application server. During my testing,
>I've found that I cannot run my code on Orion because in every instance
>where I do a redirect, Orion expects that the redirect url is based from
>the application context directory and Resin expects that the request is
>from the current directory. I've tried several alternatives but have been
>unable to find a solution that will work on either server. Is there a way
>to do this? I am desperate at this point. I appreciate any information
>you can provide me with.
>
>Sincerely,
>Andy
>
>
>