/*
* Generated by MyEclipse Struts
* Template path: templates/java/JavaClass.vtl
*/
package com.livechance.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.livechance.bean.TestBean;
import com.livechance.form.TestForm;
/**
* MyEclipse Struts
* Creation date: 06-21-2008
*
* XDoclet definition:
* @struts.action path="/test" name="testForm" input="/jsp/test.jsp" scope="request" validate="true"
* @struts.action-forward name="success" path="/jsp/success.jsp"
*/
public class TestAction extends Action {
/*
* Generated Methods
*/
/**
* Method execute
* @param mapping
* @param form
* @param request
* @param response
* @return ActionForward
*/
public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) {
TestForm testForm = (TestForm) form;// TODO Auto-generated method stub
TestBean tb = new TestBean();
tb.setTest(testForm.getTest());
request.setAttribute("testbean", tb);
return mapping.findForward("success");
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
资源详情
资源评论
资源推荐
收起资源包目录
Struts1.rar (24个子文件)
Struts1
.mystrutsdata 254B
.settings
org.eclipse.core.resources.prefs 86B
src
com
livechance
ApplicationResources.properties 112B
form
TestForm.java 1KB
ApplicationResources_en.properties 110B
action
TestAction.java 1KB
ApplicationResources_zh.properties 117B
bean
TestBean.java 200B
.project 1KB
WebRoot
META-INF
MANIFEST.MF 39B
WEB-INF
web.xml 1KB
.struts-config.mex 815B
classes
com
livechance
ApplicationResources.properties 112B
form
TestForm.class 1KB
ApplicationResources_en.properties 110B
action
TestAction.class 1KB
ApplicationResources_zh.properties 117B
bean
TestBean.class 539B
struts-config.xml 820B
lib
index.jsp 834B
jsp
test.jsp 432B
success.jsp 564B
.mymetadata 294B
.classpath 475B
.myeclipse
共 24 条
- 1
^好心情^
- 粉丝: 23
- 资源: 34
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0