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

📄 echosubmit.java

📁 java例子的简单介绍,helloworld
💻 JAVA
字号:
//Created by MyEclipse Struts// XSL source (default): platform:/plugin/com.genuitec.eclipse.cross.easystruts.eclipse_3.7.200/xslt/JavaClass.xslpackage com.nscorp.struts_class.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.nscorp.struts_class.form.EchoForm;import javax.servlet.http.HttpSession;/**  * MyEclipse Struts * Creation date: 08-04-2004 *  * XDoclet definition: * @struts:action path="/EchoSubmit" name="EchoForm" input="/jsp/pages/Echo.jsp" scope="request" validate="true" * @struts:action-forward name="/jsp/pages/Welcome.jsp" path="/jsp/pages/Welcome.jsp" contextRelative="true" */public class EchoSubmit extends Action {	// --------------------------------------------------------- Instance Variables	// --------------------------------------------------------- Methods	/** 	 * Method execute	 * @param mapping	 * @param form	 * @param request	 * @param response	 * @return ActionForward	 */	public ActionForward execute(		ActionMapping mapping,		ActionForm form,		HttpServletRequest request,		HttpServletResponse response) {		EchoForm EchoForm = (EchoForm) form;	       // The echoForm is connected to this action        // in the struts_config.xml file.        HttpSession session = request.getSession();        //        // The formBean is passed by name to the next        // behavior. In this case the Welcome.jsp.        //        session.setAttribute("echoForm", form);        return (mapping.findForward("success"));	}}

⌨️ 快捷键说明

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