Valeri
asked on
How to change working directory in Tomcat
Hi all,
How to change working directory in Tomcat? Currently from my JSP I'm creating file and after that I'm finding this file in TOMCAT_HOME/bin, but I don't want to be there, I would like to be in my ROOT directory!
I know that I have to write something in web.xml or server.xml, but I don't know what exactly?!?!
Is there anybody that knows how to change my working directory?
Please write the lines that I have to add to this xml files in order to change my working directory!
Thanks in advance!
How to change working directory in Tomcat? Currently from my JSP I'm creating file and after that I'm finding this file in TOMCAT_HOME/bin, but I don't want to be there, I would like to be in my ROOT directory!
I know that I have to write something in web.xml or server.xml, but I don't know what exactly?!?!
Is there anybody that knows how to change my working directory?
Please write the lines that I have to add to this xml files in order to change my working directory!
Thanks in advance!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
hehehe... darn ;-)
ASKER
Only getServletContext().getRea lPath( "." ) doesn't works... "getServletConfig()" must be added in front. But what actually retruns this "getServletConfig()" ?!?!
All JSPs are compiled into servlets, and getServletConfig() is a method of HttpServlet :-)
Hope it's all working!
Good luck!
Tim
Hope it's all working!
Good luck!
Tim
ASKER