package test6;
import com.opensymphony.xwork2.ActionSupport;
public class Reg extends ActionSupport {
private Point point;
private String msg;
public String getMsg() {
return msg;
}
public void setMsg(String msg) {
this.msg = msg;
}
public Point getPoint() {
return point;
}
public void setPoint(Point point) {
this.point = point;
}
public String execute() throws Exception {
if(getPoint()!=null)
{
System.out.println("doing");
setMsg("你输入的坐标是X="+getPoint().getX()+",Y="+getPoint().getY());
return SUCCESS;
}
else
return INPUT;
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
struts2数据转换示例
共32个文件
class:6个
java:6个
xml:5个
需积分: 0 37 下载量 133 浏览量
2008-09-17
17:52:23
上传
评论
收藏 3.22MB RAR 举报
温馨提示
基于struts2的类型转换,对于熟悉struts2的流程也许会有些帮助
资源详情
资源评论
资源推荐
收起资源包目录
struts2类型转换.rar (32个子文件)
interceptor
.project 1013B
.mymetadata 306B
WebRoot
WEB-INF
web.xml 625B
lib
ognl-2.6.11.jar 164KB
commons-logging-1.0.4.jar 37KB
xwork-2.0.5.jar 447KB
freemarker-2.3.8.jar 784KB
struts2-core-2.0.11.2.jar 2.22MB
classes
xwork-conversion.properties 89B
test6
User.class 899B
PointConverter.class 1KB
Reg.class 1KB
MyInterceptor.class 1018B
Point.class 666B
Info.class 655B
test6.xml 815B
struts.xml 647B
META-INF
MANIFEST.MF 39B
error.jsp 834B
test6
success.jsp 1007B
input.jsp 1014B
in.jsp 1KB
.myeclipse
src
xwork-conversion.properties 89B
test6
PointConverter.java 572B
Info.java 320B
Point.java 269B
User.java 530B
Reg.java 635B
test6.xml 815B
MyInterceptor.java 455B
struts.xml 647B
.classpath 735B
共 32 条
- 1
sheng0512
- 粉丝: 0
- 资源: 8
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0