<div class="hotel">
<input name="hotel.name" type="text">
<input name="hotel.area" type="text">
<input name="hotel.stars" type="text">
<input name="hotel.roomType" type="text">
<input name="hotel.checkin" type="text">
<input name="hotel.checkout" type="text">
</div><div class="hotel">
<input name="hotel.name" type="text">
<input name="hotel.area" type="text">
<input name="hotel.stars" type="text">
<input name="hotel.roomType" type="text">
<input name="hotel.checkin" type="text">
<input name="hotel.checkout" type="text">
</div><div class="hotel">
<input name="hotel.name" type="text">
<input name="hotel.area" type="text">
<input name="hotel.stars" type="text">
<input name="hotel.roomType" type="text">
<input name="hotel.checkin" type="text">
<input name="hotel.checkout" type="text">
</div>
实体类是Hotel.javapublic class Hotel {
private int id;
private String name;
private String area;
private String stars;
private String roomType;
private Date checkin;
private Date checkout;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getArea() {
return area;
}
public void setArea(String area) {
this.area = area;
}
public String getStars() {
return stars;
}
public void setStars(String stars) {
this.stars = stars;
}
public String getRoomType() {
return roomType;
}
public void setRoomType(String roomType) {
this.roomType = roomType;
}
public Date getCheckin() {
return checkin;
}
public void setCheckin(Date checkin) {
this.checkin = checkin;
}
public Date getCheckout() {
return checkout;
}
public void setCheckout(Date checkout) {
this.checkout = checkout;
}
}请问怎样全部接收,然后写进数据库,并且数据库中的记录有3条?
解决方案 »
- 大家分析一下一个数据库连接不释放的所占用内存是怎么的
- struts 点击下拉菜单的学院,对应显示专业
- java读写Properties文件
- apache rewrite 后在jsp中request.getRequestURI后得到是jsp文件名
- 请问,怎样从数据库中获得money型的数据,赋给一个变量中?
- onClick="top.main.location='PrintBaobiao.jsp'是什么意思?
- 全局servlet的编写
- 在大家的帮助下,利用自已的业余时间终于做了一个自己的网站,欢迎大家提提意见。
- 内部服务器错误?源程序已贴出
- @RequestMapping映射问题
- 关于建设一个资源下载网站的思路,求大牛们指导
- 大家来帮帮我,birt 部署到websphere6.1上出现问题。
String[] getParameterValues(name)可以得到一个String[] 数组