• Post Reply Bookmark Topic Watch Topic
  • New Topic

path of webapps\myApp  RSS feed

 
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!