delstaffaction.java

来自「java阿里巴巴代码」· Java 代码 · 共 53 行

JAVA
53
字号
// Created by Xslt generator for Eclipse.
// XSL :  not found (java.io.FileNotFoundException:  (Bad file descriptor))
// Default XSL used : easystruts.jar$org.easystruts.xslgen.JavaClass.xsl

package com.ahbay.struts.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.ahbay.UserMgr.*;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

/** 
 * DelstaffAction.java created by EasyStruts - XsltGen.
 * http://easystruts.sf.net
 * created on 08-16-2006
 * 
 * XDoclet definition:
 * @struts:action validate="true"
 */
public class DelstaffAction extends Action
{
	// --------------------------------------------------------- Instance Variables
	// --------------------------------------------------------- Methods
	/** 
	 * Method execute
	 * @param ActionMapping mapping
	 * @param ActionForm form
	 * @param HttpServletRequest request
	 * @param HttpServletResponse response
	 * @return ActionForward
	 * @throws Exception
	 */
	public ActionForward execute(
		ActionMapping mapping,
		ActionForm form,
		HttpServletRequest request,
		HttpServletResponse response)
		throws Exception
	{
		StaffMgr staff =  new StaffMgr();
		String staffId = request.getParameter("staffId");
		staff.setStaff_id(staffId);
		String result= staff.DelStaff();
		request.setAttribute("result",result);	
		request.setAttribute("order","26");
		return mapping.findForward("error"); 
		
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?