announcedeleteaction.java
来自「采用Eclispe开发平台」· Java 代码 · 共 34 行
JAVA
34 行
package com.whatratimes.webedu.bbs;
import com.whatratimes.dbms.UserSQLExecuter;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
* User: Tao
* Date: Jul 22, 2003
* Time: 8:31:49 AM
*/
public class AnnounceDeleteAction extends Action
{
public ActionForward execute(ActionMapping actionMapping, ActionForm actionForm, HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws Exception
{
String rt = httpServletRequest.getParameter("RT");
String m_id = httpServletRequest.getParameter("MessageId");
if ( m_id != null )
{
UserSQLExecuter.executeUpdate(
"delete from t_bbs_announce where AnnounceId = " + m_id + " OR ParentId = " + m_id);
}
return actionMapping.findForward(rt);
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?