deletion from jsp
1 posts in topic
Flat View  Flat View

Posted By:   Mirza_Miraz
Posted On:   Friday, September 14, 2007 12:57 AM

On my Jsp, I want to select a file from directory n wants to delete this file on delete(submit).

Re: deletion from jsp

Posted By:   Robert_Lybarger  
Posted On:   Friday, September 14, 2007 08:41 AM

You're deleting a file on the server, right? Go into a scriptlet block, instantiate a File object normally via whichever constructor variant you like, then call ".delete()" on it. Check the boolean return value for success/failure.
About | Sitemap | Contact