struts html id 属性,注册时,获取不到struts标签中的gender值_html/css_WEB-ITnose

性 别:

javabean

package cn.itcast.domain;import java.sql.Date;public class Employee { private Integer id; //编号 private String loginName;//登陆名 private String password;//登陆密码 private String name; //姓名 private Integer gender;//性别 private Date birthday;//生日 private Date entryDate;//入职日期 private String empNO;//员工号 private Department department;public Employee() {super();}public Integer getId() {return id;}public void setId(Integer id) {this.id = id;}public String getLoginName() {return loginName;}public void setLoginName(String loginName) {this.loginName = loginName;}public String getPassword() {return password;}public void setPassword(String password) {this.password = password;}public String getName() {return name;}public void setName(String name) {this.name = name;}public Integer getGender() {return gender;}public void setGender(Integer gender) {this.gender = gender;}public Date getBirthday() {return birthday;}public void setBirthday(Date birthday) {this.birthday = birthday;}public Date getEntryDate() {return entryDate;}public void setEntryDate(Date entryDate) {this.entryDate = entryDate;}public String getEmpNO() {return empNO;}public void setEmpNO(String empNO) {this.empNO = empNO;}public Department getDepartment() {return department;}public void setDepartment(Department department) {this.department = department;} }

数据库中为空,注册时,获取不到值,其它属性正常

回复讨论(解决方案)

性别用单选框就行了;性别

声明:本文原创发布php中文网,转载请注明出处,感谢您的尊重!如有疑问,请联系admin@php.cn处理

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值