how to check if a file exists before writing it to the server?
in case that is not clear, i have a form written in jsp, when user clicks the "save" button after filling in the form and specifying a filename, servlet will create the file and write to the server. thus i need to check the existence of the filename.
i tried using the File object but i think it is for Netscape and it doesn't use URL path.
any kind sould pls advise
in case that is not clear, i have a form written in jsp, when user clicks the "save" button after filling in the form and specifying a filename, servlet will create the file and write to the server. thus i need to check the existence of the filename.
i tried using the File object but i think it is for Netscape and it doesn't use URL path.
any kind sould pls advise