/*
* Generated by MyEclipse Struts
* Template path: templates/java/JavaClass.vtl
*/
package com.sbt.struts.action;
import java.io.IOException;
import java.io.PrintWriter;
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;
/**
* MyEclipse Struts
* Creation date: 01-11-2008
*
* XDoclet definition:
* @struts.action validate="true"
*/
public class ExampleAction extends Action {
/*
* Generated Methods
*/
/**
* Method execute
* @param mapping
* @param form
* @param request
* @param response
* @return ActionForward
* @throws IOException
*/
public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) throws IOException {
response.setContentType("text/html;charset=gbk");
PrintWriter out = response.getWriter();
out.println("hello world!");
out.flush();
return null;
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
Ajax实现helloworld!实例,eclipse+struts+Ajax初学者必看
共30个文件
jar:10个
tld:6个
xml:3个
4星 · 超过85%的资源 需积分: 9 99 下载量 170 浏览量
2008-01-12
08:30:01
上传
评论
收藏 990KB RAR 举报
温馨提示
Ajax实现helloworld!实例,eclipse+struts+Ajax初学者必看
资源推荐
资源详情
资源评论
收起资源包目录
test.rar (30个子文件)
test
.project 1KB
.mymetadata 285B
WebRoot
WEB-INF
struts-tiles.tld 8KB
.struts-config.mex 251B
web.xml 942B
struts-config.xml 518B
struts-bean.tld 9KB
struts-nested.tld 63KB
struts-html.tld 65KB
struts-template.tld 2KB
struts-logic.tld 14KB
validator-rules.xml 41KB
lib
commons-logging.jar 31KB
commons-digester.jar 107KB
commons-fileupload.jar 22KB
commons-beanutils.jar 116KB
commons-lang.jar 62KB
struts.jar 486KB
commons-validator.jar 46KB
struts-legacy.jar 10KB
jakarta-oro.jar 64KB
commons-collections.jar 161KB
classes
com
sbt
struts
action
ExampleAction.class 1KB
ApplicationResources.properties 79B
META-INF
MANIFEST.MF 39B
example.jsp 2KB
.myeclipse
src
com
sbt
struts
action
ExampleAction.java 1KB
ApplicationResources.properties 79B
.mystrutsdata 254B
.classpath 1KB
共 30 条
- 1
资源评论
- ly2586542013-03-04很好很简单很明了
- lvyxiaomin2014-11-04很简单的小例子,初学者可以用!
zsw_518
- 粉丝: 1
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功