开发者

create condition in <html:optionsCollection> tag in struts

开发者 https://www.devze.com 2023-02-17 19:24 出处:网络
I am displaying 3 values from a collection in a table of 3 rows i.e \"aa,bb,cc\" using <html:optionsCollection> tag in struts.

I am displaying 3 values from a collection in a table of 3 rows i.e "aa,bb,cc" using <html:optionsCollection> tag in struts.

aa    can ed开发者_开发问答it
bb    cannot edit
cc    can edit

There is a condition that value bb is not editable. How to do that in struts?


I suggest using JSTL conditions <c:if> in your <html:optionsCollection> tag.


Problem is solved with <logic:notEqual> tag

0

精彩评论

暂无评论...
验证码 换一张
取 消