?? delete.java
字號:
/*
* Delete.java
*
* 吳西博Created on 2007年3月20日, 上午8:21
*/
package News.Struts.Action;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.actions.DispatchAction;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionForward;
import News.ProcessData.DeleteModel;
/**
*
* @author Owner
* @version
*/
public class Delete extends DispatchAction {
public ActionForward DeleteLink(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
throws Exception {
DeleteModel dm=new DeleteModel();
if(dm.DeleteLink(request.getParameter("ID")))
{
return mapping.findForward("success");
}else {return mapping.findForward("failure");}
}
public ActionForward DeleteNotice(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
throws Exception {
DeleteModel dm=new DeleteModel();
if(dm.DeleteNotice(request.getParameter("ID")))
{
return mapping.findForward("success");
}else {return mapping.findForward("failure");}
}
public ActionForward DeleteCatalog(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
throws Exception {
DeleteModel dm=new DeleteModel();
if(dm.DeleteCatalog(request.getParameter("ID")))
{
return mapping.findForward("success");
}else {return mapping.findForward("failure");}
}
public ActionForward DeleteNew(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
throws Exception {
DeleteModel dm=new DeleteModel();
if(dm.DeleteNew(request.getParameter("ID")))
{
return mapping.findForward("success");
}else {return mapping.findForward("failure");}
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -