- 1
- 0
- 约1.28万字
- 约 21页
- 2016-09-20 发布于河南
- 举报
struts2.0获取各种表单的数据
struts2.0获取各种表单的数据
2011-07-27
struts2.0获取各种表单的数据 博客分类: struts2
.后台代码:
Java代码
1.import java.util.List;
2.import com.opensymphony.xwork2.ActionSupport;
3./**
4. * struts2.0获取各种表单的数据
5. * 获取下拉框的值,和复选框的值可以用一个数组或者集合来保存,变量名要和表单的name属性值一致
6. * @author 够潮
7. *
8. */
9.@SuppressWarnings(unchecked)
10.public class GetParametersAction extends ActionSupport {
11.
12. /**
13. * 表单:用户名
14. */
15. private String userName ;
16. /**
17. * 隐藏表单:密码:
18. */
19. private String userPassword;
20. /**
21. * 单选框:性别:
22. */
23.
原创力文档

文档评论(0)