新闻发布系统

源代码在线查看: delete.java

软件大小: 238 K
上传用户: forchwei
关键词: 新闻发布系统
下载地址: 免注册下载 普通下载 VIP

相关代码

				/*
				 * 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");}
				    }
				}
							

相关资源