jsp大概代码:<logic:present name="contractList" scope="request"> <logic:iterate id="contract" name="contractList">
//我想在下面的代码里对contract的overTime做倒计时.
// 第一种
<%
String overTime=${contract.overTime};
%>
// 第二种
<%
Contract contract2=(Contract) request.getAttribute("contract");
String overTime=contract.getOverTime();
%>
//这两种好像都得不到值
<tr>
<td>${contract.gmrq}</td>
</tr>
</logic:iterate>
</logic:present>
//我想在下面的代码里对contract的overTime做倒计时.
// 第一种
<%
String overTime=${contract.overTime};
%>
// 第二种
<%
Contract contract2=(Contract) request.getAttribute("contract");
String overTime=contract.getOverTime();
%>
//这两种好像都得不到值
<tr>
<td>${contract.gmrq}</td>
</tr>
</logic:iterate>
</logic:present>
String overTime=${contract.overTime};
%>
这种不报错?
我发的那几个帖子你好像都看过,我其实最终就是想实现,一个list数据循环下来,对它们的过期时间做倒计时,还剩XX天XX小时XX分钟XX秒。