读书人

STRUTS2 ACTION收不到页面传过来的属性

发布时间: 2013-11-21 23:38:25 作者: rapoo

STRUTS2 ACTION收不到页面传过来的属性值
现象:
1. ACTION的EXECUTE方法能被调用
2. 所有的SETTER值都是NULL

查看页面的返回的值:
id:0
stationId:1
title:11
checkPerson:自己
checkDate:2013-11-08
checkHour:1:30 上午

ACTION中的设定(SETTER/GETTER全部自动生成)
private Integer id;
private String checkPerson;
private String title;
private String checkDate;
private String checkHour;
private Integer stationId;
[解决办法]
id:0
stationId:1
title:11
checkPerson:自己
checkDate:2013-11-08
checkHour:1:30 上午

读书人网 >Java Web开发

热点推荐