Delete text file

Hi again, does anyone know how to delete away a text file from a JSP page by choosing the file to be deleted then when you press a delete button, it will delete the file away?
[189 byte] By [des_xu] at [2007-9-26 1:26:53]
# 1
is this file from server or client?
ShirleyY at 2007-6-29 1:10:26 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
oh...all the files are inside the server
des_xu at 2007-6-29 1:10:26 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
meaning, for example, the administrator can delete the files away from the server directory
des_xu at 2007-6-29 1:10:26 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
hmm..anyone?
des_xu at 2007-6-29 1:10:26 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5
If it's on the server side... you can try the following piece of code :File f = new File ( "path-to-my-filename-to-delete" );f.delete();f = null;In you Jsp page don't forget to import the java.io package.Sylvain Gibier
gibier at 2007-6-29 1:10:26 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 6
oh...ok, thanks alot!
des_xu at 2007-6-29 1:10:26 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...