日期:2014-05-17 浏览次数:21091 次
System.out.println((list.get(i)).getPE_ID()+"....."+(list.get(i)).getNAMECODE()+"....."+(list.get(i)).getAGE()+"....."+(list.get(i)).getAliasName()+"....."+(list.get(i)).getAliasNameCode()+"....."+(list.get(i)).getBARCODE()+"....."+(list.get(i)).getBIRTH_ADDRESS()+"....."+(list.get(i)).getBLOOD_TYPE());
0134406.....ZHANG BAO SHAN.....null.....null.....null.....134406.....上海市.....
1..........null...............1..........
1 32366.....ZHANG XIA.....null.....null.....null.....1 32366.....江苏省无锡市.....
10..........null...............10..........
100763.....ZHENG YOU XIAO.....null.....null.....null.....100763..........
10085.....WANG ZI.....null.....null.....null.....10085.....410400.....
10085.....WANG ZI.....null.....null.....null.....10085.....410400.....
public String execute() throws Exception
{ Map requests = (Map)ActionContext.getContext().get("request");
requests.put("lists", this.service.getPeIndex());
System.out.println(requests.size());
List<PeIndex> list = this.service.getPeIndex();
System.out.println("ListPeIndexAction.....");
for(int i= 0;i<list.size();i++){
pe_index = list.get(i);
System.out.println((list.get(i)).getPE_ID()+"....."+(list.get(i)).getNAMECODE()+"....."+(list.get(i)).getAGE()+"....."+(list.get(i)).getAliasName()+"....."+(list.get(i)).getAliasNameCode()+"....."+(list.get(i)).getBARCODE()+"....."+(list.get(i)).getBIRTH_ADDRESS()+"....."+(list.get(i)).getBLOOD_TYPE());
}
return SUCCESS;
}
<s:iterator value="lists" id="peindex">
<tr>
<td>
<s:property value="#peindex.PE_ID" />
</td>
//上面也不能输出字符!!求大神帮忙(这个只不过是一部分代码)
<td><s:if test="%{#peindex.PE_ID}==null||#peindex.PE_ID==''}">
无
</s:if> <s:else>
<s:property value="#peindex.PE_ID" />
</s:else>
</td>
<td>
<s:if test="%{#peindex.VISIT_ID==null||#peindex.VISIT_ID==''}">
无
</s:if>
<s:else>
<s:property value="#peindex.VISIT_ID" />
</s:else>
</td>
<td>
<s:if test="%{#peindex.MEDICAL_ID==null||#peindex.MEDICAL_ID==''}">
无
</s:if>
<s:else>
<s:property value="#peindex.MEDICAL_ID" />
</s:else>
</td>