?? del.jsp
字號:
<%@page contentType="text/html;charset=GBK"%>
<%@page import="net.ijsp.news.news.*,
net.ijsp.news.util.*"%>
<%@include file="getsession.jsp"%>
<%
int id = ParamUtils.getInt(request,"id",0);
String fileName = ParamUtils.getString(request,"fileName","");
if(id==0 || fileName.equals(""))
throw new Exception("<li>您正在嘗試進行非法的操作。");
String pathName = application.getRealPath("./news/"+fileName) ;
boolean del = DelHtml.del(pathName);
if(!del)
throw new Exception("<li>文件沒有被刪除!可能的原因:此文件不存在;目錄不具備刪除權限。請聯系系統(tǒng)管理員。");
NewsFactory newsFactory = Factory.getInstance().getNewsFactory();
newsFactory.del(id);
%>
<html>
<title>文章刪除成功</title>
<link rel="stylesheet" href="../inc/admin.css" type="text/css">
<BODY leftmargin="0" bottommargin="0" rightmargin="0" topmargin="0" marginheight="0" marginwidth="0" bgcolor="#DDEEFF">
<br>
<center>新聞刪除成功。
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -