Hi,

I developed JSP using Netbeans (Apache Tomcat). I need to write out a file into a my project folder instead of the apache tomcat folder if I did not specify any path.

I tried out.println(getServletContext().getRealPath("")); and it gives the path
C:\Users\user\Desktop\project\build\web
.

How is it possible for me to change it to
C:\Users\user\Desktop\project\web folder?

Please advice, cheers