繁体   English   中英

在…中创造条件 <html:optionsCollection> 在支柱中标记

[英]create condition in <html:optionsCollection> tag in struts

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

aa    can edit
bb    cannot edit
cc    can edit

存在一个条件,值bb是不可编辑的。 如何在支撑架上做到这一点?

我建议在<html:optionsCollection>标记中使用JSTL条件<c:if>

问题通过<logic:notEqual>标签解决

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM