37
业主姓名 | 性别 | 职业 | 电话 | 入住时间 | 入住人口 | 房屋地址 |
<% //获取WebApplicationContext WebApplicationContext wac=
WebApplicationContextUtils.getWebApplicationContext(this.getServletContext());
DButil db = (DButil)wac.getBean(\); int i = 0;
for(userInfo user:userlist){ String userId = user.getUserId(); String houseId=user.getHouseId();
HouseInfo houseInfo=(HouseInfo)db.getObject(\,houseId); String name=user.getName(); String sex=user.getSex();
String profession=user.getProfession(); String telephone=user.getTelephone(); Date cometime=user.getCometime(); int livenumber=user.getLivenumber();
38
if(i%2==0){ } else{ }
i++;
out.println(\); i++;
out.println(\);
%>
<%= name %> | <%= sex %> |
<%= profession %> | <%= telephone %> | <%= cometime %> | <%= livenumber %> |
<%= houseInfo.getAddress() %> | <% }
%>