G
goflay
Unregistered / Unconfirmed
GUEST, unregistred user!
<logic:iterate id="element" property="menuList" name="menu_mForm">
<% String isleaf = "<bean:write name = 'element' property='ISLEAF'/>";
if (isleaf.equals("是") ) {
%>
<tr class="trright2">
<% } else
{
%>
<tr class="trright1">
<% } %>
....一下为标准的html
如果字符串isleaf为”是“ tr 为样式trright2,否则为trright1,但isleaf 通过"<bean:write name = 'element' property='ISLEAF'/>";
获取<logic:iterate的一字段ISLEAF的值,但没有获取到,需要怎样修改?
<% String isleaf = "<bean:write name = 'element' property='ISLEAF'/>";
if (isleaf.equals("是") ) {
%>
<tr class="trright2">
<% } else
{
%>
<tr class="trright1">
<% } %>
....一下为标准的html
如果字符串isleaf为”是“ tr 为样式trright2,否则为trright1,但isleaf 通过"<bean:write name = 'element' property='ISLEAF'/>";
获取<logic:iterate的一字段ISLEAF的值,但没有获取到,需要怎样修改?