Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

path of webapps\myApp

 
Murad Iqbal
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all!

I need to create a file under webapps\myApp\ directory from the servlet during runtime. I am using Tomcat 5.x. Can I create a File under myApp (if i can get the path through servlet somehow)? I dont want to hardcode the path, as the application may be deployed on different machines.

Regards,
Murad.
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try this. it may help.


Ma'assalaam
 
I think I'll just lie down here for a second. And ponder this tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!