[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index] [Home]

Re: servletContext.getRealPath()



Hi Primoz,

I think thats mentioned in the jserv docs, that getRealPath()
returns null.
You may take a look at the stuff dealing with that in JspServlet.
But we warned it's ugly and you need the pagebase.

>Hi!
>
>I am using Apache 1.3.9/JServ 1.0 on win NT 4.0. I've managed to configure GNU
>JSP 1.0 and my jsp pages compile fine.BUT, in one of my application scoped
>beans, I try to resolve the real path of my document root, i.e.
>servletContext.getRealPath("/");
>It seems that Apache fails to translate it to directory form and returns null
>for whatever reason. Is it about security or apache/jserv wrongly implements
>Servlet API?
>Help appreciated ASAP!!
>
>Primoz

Ciao,
	Carsten