• Post Reply Bookmark Topic Watch Topic
  • New Topic

application real path  RSS feed

 
Shraga van Shufel
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I would like to have the real path to my application.
when I use application.getRealPath(request.getRequestURI()); I gets the real path of the request.
And it looks like application.getRealPath() was deprecated
how can I just have the full path to my application root folder ?
thanks in advance
/shraga.
 
raimondas zemaitis
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try getRealPath("/");
 
narasimharao konjeti
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
request.getRealpath()
or
request.getAbsolutepath();
cheers
 
Shraga van Shufel
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
gents,
getRealPath("/");
is my freind
thanks for your help
/Shraga.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!