Re: How Web Service get container context???

From: Sudsy (bitbucket44_at_hotmail.com)
Date: 12/21/04


Date: Tue, 21 Dec 2004 16:46:37 -0500

TDOR wrote:
> I have a webservice that need to read files relative to the root of
> the webapp that it is deployed in. Looking into apache axis and oracle
> web services frameworks I just cant find any method to get the
> container/ or servlet context to read its path. How can it be done?

ServletContext#getRealPath( String path )



Relevant Pages

  • Get path 2 directories up from some known path
    ... I am interested in the path of a file within the project's root ... directory instead of the bin/debug. ... following code snippet. ... string path = Environment.CurrentDirectory; ...
    (microsoft.public.dotnet.languages.csharp)
  • Configuration Question regarding Remoting, FormsBased Security, and Web.config
    ... I have a web structure that looks like this: ... I have set up my remoting information in the root Web.config ... string path = Context.ApplicationInstance.Server.MapPath; ...
    (microsoft.public.dotnet.framework.aspnet)
  • Using //
    ... javax.xml.xpath.XPath xpath = factory.newXPath; ... String path = url.toURI.getPath; ...
    (comp.text.xml)

Loading