I have a webapp that stores some data in an xml file. (I am using jdom to 
read and write the xml files.)

Right now I am using a construct like:

String prefix = sc.getRealPath("/") + "/WEB-INF/dirName/";

to get the path.  I then concatonate that with the file name and it works 
fine.

However, in the javadocs for javax.servlet I read:

"This method returns null if the servlet container cannot translate the 
virtual path to a real path for any reason (such as when the content is 
being made available from a .war archive)."

I am not exactly sure what this means.  If I deploy this application as a 
.war, does the sc.getRealPath stop working?

Thanks
Paul Phillips


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to