• Post Reply Bookmark Topic Watch Topic
  • New Topic

What is the UNC of the running servlet  RSS feed

 
Kop Ite
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
What is the code that will establish the UNC (i.e. \\host\dir\servlet) address of the servlet that is running ?
thanks
 
Tim Holloway
Bartender
Posts: 18715
71
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
UNC is a Windows file server artifact. It has nothing to do with any sort of web server, not even Microsoft's. Don't confuse it with URL!
 
Kop Ite
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
found the answer:
HttpServletRequest.getRealPath("/")
this gives the full path.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!