?? cqyxzdelete.java
字號:
package com.webtier.clientQyxzAction;
import org.apache.struts.action.*;
import javax.servlet.http.*;
import com.service.CqyxzFacade;
import com.service.CqyxzFacadeImpl;
import java.io.UnsupportedEncodingException;
import com.domain.CqyxzForm;
import com.tool.Chinese;
//刪除操作
public class CqyxzDelete
extends Action {
private CqyxzFacade qyxzFacade = null;
public CqyxzDelete() {
this.qyxzFacade = new CqyxzFacadeImpl();
}
public ActionForward perform(ActionMapping actionMapping,
ActionForm actionForm,
HttpServletRequest httpServletRequest,
HttpServletResponse httpServletResponse) throws
UnsupportedEncodingException {
httpServletRequest.setCharacterEncoding("gb2312");
Chinese chinese = new Chinese();
CqyxzForm qyxzform = (CqyxzForm) actionForm;
qyxzform.setQyxz_id(chinese.str(httpServletRequest.getParameter("id")));
this.qyxzFacade.qyxzDelete(qyxzform);
return actionMapping.findForward("cqyxzDelete");
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -