On Wednesday 07 February 2001 09:55, Rafal Krzewski wrote:
> I must say that I'm a bit sceptical about all that getRealPath
> commodities available (and planned).
> Servlet specifications states that ServletContext.getRealPath method
> might or might not work upon container's provider discretion.
> To be truly portale applications should access the files contained
> in their web applications archives/directories, they should use
> the following methods from ServletContext interface:
>
> java.net.URL getResource(String path) and
As long as I have a way to get the path. It looks like this works as well.
> where path is relative to webapplication root.
>
> I believe that ResourceService shold provide a wrapper to
> these methods
>
+1
I would still like to be able to get the ServletContext from the
ResourceService.
John
--
********************************
** John Thorhauer
** [EMAIL PROTECTED]
** take a look at:
** http://tambora.zenplex.org
** http://www.zenplex.org
** http://www.zenplex.com
********************************
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]