tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <craig...@apache.org>
Subject Re: AJP Todo
Date Tue, 11 Dec 2001 04:59:23 GMT


On Mon, 10 Dec 2001, Bill Barker wrote:

> Date: Mon, 10 Dec 2001 20:00:35 -0800
> From: Bill Barker <wbarker@wilshire.com>
> Reply-To: Tomcat Developers List <tomcat-dev@jakarta.apache.org>
> To: Tomcat Developers List <tomcat-dev@jakarta.apache.org>
> Subject: Re: AJP Todo
>
>
> ----- Original Message -----
> From: "Incze Lajos" <incze@mail.matav.hu>
> To: "Tomcat Developers List" <tomcat-dev@jakarta.apache.org>
> Sent: Monday, December 10, 2001 8:02 AM
> Subject: Re: AJP Todo
>
>
> > What's wrong with this? (ServletContext method javadoc both 2.2 and 2.3)
>
> Absolutely nothing.  And indeed this is the route I took, since looking at
> the code showed that the Naming methods still didn't guarantee an absolute
> path and this one always returns null for non-file-based contexts.
>

That's because there *is* no such thing as an absolute path for an entry
inside a WAR file.  Talk to your favorite OS vendor about that one.

> Now if I can just find someone to Listen to, I'll be done :).

What is it you think should be changed?

Craig


> > ----
> > getRealPath
> >
> > public java.lang.String getRealPath(java.lang.String path)
> >
> > Returns a String containing the real path for a given virtual path.
> > For example, the path "/index.html" returns the absolute file path
> > on the server's filesystem would be served by a request for
> > "http://host/contextPath/index.html", where contextPath is the context
> > path of this ServletContext..
> >
> > The real path returned will be in a form appropriate to the computer and
> > operating system on which the servlet container is running, including the
> > proper path separators. This method returns null if the servlet container
> > cannot translate the virtual path to a real path for any reason (such as
> > when the content is being made available from a .war archive).
> > -----
> > So, getServletContext().getRealPath( "/" )
> >
> > incze
> >
> > --
> > To unsubscribe, e-mail:
> <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail:
> <mailto:tomcat-dev-help@jakarta.apache.org>
> >
>
>
> --
> To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message