I have to upload a file using jsp. Am using netbeans 6.9. The file gets uploaded successfully if the source file name & destination file name are same. But in my application I have to change the destination file name for which I used the following code:
"sourceFileName .renameTo(desti nationFileName) ;"
But then the function renameTo() is not regonised by the IDE in spite of me importing java.lang.*
Please help.
Thanks in advance.
"sourceFileName .renameTo(desti nationFileName) ;"
But then the function renameTo() is not regonised by the IDE in spite of me importing java.lang.*
Please help.
Thanks in advance.
Comment