⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 newgzaction.java

📁 Eclips+tomcat基于struts开发的一个员工系统的小例子
💻 JAVA
字号:
//Created by MyEclipse Struts// XSL source (default): platform:/plugin/com.genuitec.eclipse.cross.easystruts.eclipse_3.8.4/xslt/JavaClass.xslpackage com.zhang.action;import javax.servlet.http.HttpServletRequest;import javax.servlet.http.HttpServletResponse;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 com.zhang.form.NewgzForm;import com.zhang.operation.Gzxx;/** * MyEclipse Struts Creation date: 02-28-2006 *  * XDoclet definition: *  * @struts:action path="/newgz" name="newgzForm" scope="request" */public class NewgzAction extends Action {	// --------------------------------------------------------- Instance	// Variables	// --------------------------------------------------------- Methods	public ActionForward execute(ActionMapping mapping, ActionForm form,			HttpServletRequest request, HttpServletResponse response) {		NewgzForm newgzForm = (NewgzForm) form;		int gz = newgzForm.getGz();		int jj = newgzForm.getJj();		int yf = newgzForm.getYf();		Gzxx gzxx = new Gzxx();		if (gzxx.addGz(newgzForm)) {			return mapping.findForward("query");		} else {			return mapping.findForward("error");		}	}}

⌨️ 快捷键说明

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