I am not sure about Resin any longer, but it used to work fine for me on
both. I know Orion follows the J2EE specs with Servlet 2.2/JSP 1.1. I would
assume they are both doing so. Needless to say, without any example I am not
quite sure what you mean.

In my web-app, deployed in Orion, I use the following syntax in JSP pages:

<a href="/path/file.jsp">click</a>

If I have more than one web-app deployed, I do the following in a "header"
scriplet included on every single JSP page:

<%
  String contextPath = request.getContextPath();
%>

This yields the value of the web-app context, so for example if you deploy a
web app as www.domain.com/my-web-app/index.jsp the contextPath ==
"/my-web-app", therefore my links (as I do them now) would become:

<a href="<%= contextPath %>/path/file.jsp">click</a>

This makes sure that what ever context the link I am going to is in, it
always goes relative to the absolute path of the web-app, including the
context. You can even extend this to:

<a href="http://www.domain.com/<%= contextPath %>/path/file.jsp">click</a>

This is all according to the Servlet 2.2 specs though...so it should work in
any servlet 2.2 capable servlet engine.

> 
> 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
> 
> 

Reply via email to