• Post Reply Bookmark Topic Watch Topic
  • New Topic

getRealPath

 
Ernest Lee
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
do the getRealPath returns real path in URL form (e.g. http://www.scwcd.com/index.html) or OS form (c:\toobad\index.html).
and.. does the getRealPath take path that is relative to the current servlet?? (i.e. path does not begin with \)
thx.
[This message has been edited by Ernest Lee (edited December 02, 2001).]
 
Peter den Haan
author
Ranch Hand
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It returns a filesystem path conforming to the OS conventions.
- Peter
 
Meng Tan
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is aServletContext.getRealPath(myPath) equivalent to
aServletContext.getRealPath("/") concatenate (myPath in file system format)???
Thanks.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!