新闻发布系统
源代码在线查看: 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");}
}
}