On Mon, 10 Dec 2001, Bill Barker wrote:

> Date: Mon, 10 Dec 2001 20:00:35 -0800
> From: Bill Barker <[EMAIL PROTECTED]>
> Reply-To: Tomcat Developers List <[EMAIL PROTECTED]>
> To: Tomcat Developers List <[EMAIL PROTECTED]>
> Subject: Re: AJP Todo
>
>
> ----- Original Message -----
> From: "Incze Lajos" <[EMAIL PROTECTED]>
> To: "Tomcat Developers List" <[EMAIL PROTECTED]>
> 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:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> >
>
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to