|
-
Jan 23rd, 2009, 11:04 AM
#1
Thread Starter
Hyperactive Member
Java Web Application Absolute/Relative Path
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|