Hi stuart,

now it works, but the reason I didn't see my error is that the Methode getRealPath( 
String str) takes also a string as parameter although a String is returned and that 
confused me.

thanks

Mohammed 


-----Urspr�ngliche Nachricht-----
Von: Stuart Halloway (DevelopMentor) [mailto:stu@;develop.com]
Gesendet: Dienstag, 5. November 2002 19:13
An: [EMAIL PROTECTED]
Betreff: RE: getRealPath() returns an empty string


Hi Mohammed,

How do you know that getRealPath() is returning an empty string, given
that your code fragment is ignoring the return value entirely? :-)

Stu

----------------------------------------------------------
Stuart Halloway         : staff.develop.com/halloway
DevelopMentor           : www.develop.com
Essential Java          : www.develop.com/courses/essjava
----------------------------------------------------------


-----Original Message-----
From: Akacem Mohammed [mailto:Mohammed.Akacem@;arbeitsamt.de] 
Sent: Tuesday, November 05, 2002 10:06 AM
To: [EMAIL PROTECTED]
Subject: getRealPath() returns an empty string


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