how to save file on server folder

hi

i was trying to save file in my specify folder path.

but it cann't save on than location.

if i will not specify path then it directly save file on "c:program files\tomcat5.7\bin\mytextfile.txt"

if i will specify perfect path "c://systemfile//mytextfile.txt"

it saves on that location.

if i will define path as ".//www//systemfile//mytextfile.txt"

"//www//systemfile//mytextfile.txt"

"//systemfile//mytextfile.txt"

".//mytextfile.txt" it cann't save file on location

[531 byte] By [sandeep_2012a] at [2007-11-27 11:40:38]
# 1

This site may help you.

http://www.oop-reserch.com/cross_servlet.html

1cMas5_cowa at 2007-7-29 17:33:03 > top of Java-index,Java Essentials,New To Java...
# 2

i know how to upload file .

i need to save file on my web folder " /www/file/ xxxx.txt"

how i will save it .over ther in my program i will specify location "c:/Program file/file/xxxxxx.txt"

sandeep_2012a at 2007-7-29 17:33:03 > top of Java-index,Java Essentials,New To Java...
# 3

how about setting up a shared network folder to the folder on the server and saving to that shared folder.

1cMas5_cowa at 2007-7-29 17:33:03 > top of Java-index,Java Essentials,New To Java...
# 4

security violation...

web applications aren't allowed to access system resources (or indeed anything outside their own little space (i.e. their WEB-INF directory).

jwentinga at 2007-7-29 17:33:03 > top of Java-index,Java Essentials,New To Java...