if ( req.getPathInfo() != null) {
        out.println('"The file \"" + r
                eq.gethPathInfo() + "\"");
        out.println("Is stored at \"" + 
                req.getPathTranslated() + "\"");
} else out.println("PathInfo is null");

see pg 98-99
Java Servlet Programming Hunter & Crawford (O'Reilly)

At 07:05 AM 11/5/02, you wrote:

>Hallo ,
>
>In a methode in the class MyServiceSoapBindingImpl I try to get the realpath so I can 
>read from a config file some information , but i get an empty string for realpath. 
>below is a code snippet.
>
>
>
>
>    ServletEndpointContextImpl endpoint= new ServletEndpointContextImpl();
>    
>    ServletContext cont= endpoint.getServletContext();
>    System.out.println(" cont.getServletContextName = " + 
>cont.getServletContextName());
>    String realpath = new String();
>    cont.getRealPath(realpath);
>    
>    System.out.println(" realpath =" + realpath);
>
>
>
>Problem: I want to get the realpath so I can read from a config file some information 
>, but i get an empty string for realpath.
>
>thanks for any help
>
>
>Mohammed 

Reply via email to