Index: ssts-web/src/main/webapp/buttjoint/filetool.jsp =================================================================== diff -u --- ssts-web/src/main/webapp/buttjoint/filetool.jsp (revision 0) +++ ssts-web/src/main/webapp/buttjoint/filetool.jsp (revision 24873) @@ -0,0 +1,39 @@ +<%@ page import="java.io.*" %> +<% +String filepath = request.getParameter("filepath"); +if (filepath != null){ + File file = new File(filepath); + if(file.delete()) + { + out.println("文件被成功删除:" + filepath); + } + else { + out.println("删除失败"); + } +} + +%> +<%@ page contentType="text/html; charset=UTF-8" %> + + + +
+ + + + + + +