I have a little complicated problem to explain;
I have a project that I write on Netbeans that will be used as intranet application. It was a dynamic web application. And it has some File.IO operations in it . My aim is create some files on the directory where index.html in. So I try to make the program find the directory by the code below :
Session.getServletContext().getRealPath("Index.jsp");
But because of java version it didn't work so I used:
Session.getServletContext().getContextPath();
Now it shows the right path on debug but not fullpath. After debug I can find my files under c:/ not under the directory where index.html in nor even nearby my projectfolder :)
So I looked at Apache folder under Programfiles under webapps and I saw that my applications folder is not there. It didn't unfold the war file actually it seems to virtualy opens it and creates a some numbered html file under temp folder . How can I make my Tomcat work like a Tomcat on a linux system and unfold the war file and find the right folder (the main web folder) and read write files, folders etc.
Additionally I want to add the server.xml unpack config below:
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true">
Even if you can give me a clue I would be pleased. Thanks, Kaan