在struts中的<html:optionscollection>标记中创建条件</html:optionscollection>

时间:2011-03-18 05:50:14

标签: java struts

我在struts中使用<html:optionsCollection>标记在3行表格中显示3个值,即“aa,bb,cc”。

aa    can edit
bb    cannot edit
cc    can edit

有一个条件是价值bb不可编辑。 如何在struts中做到这一点?

2 个答案:

答案 0 :(得分:0)

我建议您在<c:if>代码中使用JSTL条件<html:optionsCollection>

答案 1 :(得分:0)

使用<logic:notEqual>代码

解决了问题