(在线)10分请教一个简单问题,jsp页面中value值。
例如:
<logic:equal name= "id " value= "4 "> <tr> </logic:equal>
<logic:equal name= "id " value= "8 "> <tr> </logic:equal>
<logic:equal name= "id " value= "12 "> <tr> </logic:equal>
<logic:equal name= "id " value= "16 "> <tr> </logic:equal>
<logic:equal name= "id " value= "20 "> <tr> </logic:equal>
当value值为4,8。。。。。。。让logic标签打印 <tr>
能不能把value值做成动态的。
------解决方案-------------------- <bean:define id= "b " type= "java.lang.String " name= "ftype " property= "id "/> <bean:write name= "ftype " property= "name "/> <br>
<logic:equal name= "stype " property= "f_id " value= " <%=b%> ">
------解决方案--------------------同上~