• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to get the path of the ContextRoot

 
Corey Harden
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm creating a page that allows users to upload files to a server. I want the file upload location to be inside of an images folder in the root of the website. Is there a way to get the exact location of where the Root folder sits on the server so I can use that path to save to the images folder? I need to be able to this in a way that would make it portable. Thanks in advance!
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64718
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moved to the Servlets forum.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64718
86
IntelliJ IDE Java jQuery Mac Mac OS X
 
Corey Harden
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic