• 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic