日期:2014-05-17  浏览次数:20667 次

大家帮忙啊:页面控制
<%String xx=session.getAttribute("sessiontimecha").toString(); %>
我想通过xx 的值来控制显示页面,如果xx>30显示
<td width="10%" align="center"><font color="#008040"><bean:write name="paramlist" property="param4"/></font></td>
 
如果xx<30显示
<td width="10%" align="center"><font color="#000000"><bean:write name="paramlist" property="param4"/></font></td>


如何实现啊?紧急求救

------解决方案--------------------
<% if (xx > 30) {%>
<td>...</td>
<% } else {%>
<td>...</td>
<% } %>
好像这样可以。