In struts tag HTML: Select, the disabled attribute is sometimes required to be dynamically expressed, that is, true or false based on conditions. We know that although the struns label attribute can be used to write RuntimeCodeBut it seems that only the value assignment statement such as <% = xxx %> can be used. But cannot use <% Out. print ("true") %> when I assign a value to the disabled attribute of the select tag, it is found that the disabled tag accepts the boolean type, therefore, use Disabled = "<% =! ("03 ". equals (pdctvtinfovo) pdctvtitem ). getssn_ket_cd () | "04 ". equals (pdctvtinfovo) pdctvtitem ). getssn_ket_cd () %> "> This method can dynamically assign values to this attribute.
<HTML: Select name = "baseform"
Property = "pdctvtinfobean. ssn_sydn_cd" styleclass = "default"
Style = "width: 120px;" Disabled = "<% =! ("03 ". equals (pdctvtinfovo) pdctvtitem ). getssn_ket_cd () | "04 ". equals (pdctvtinfovo) pdctvtitem ). getssn_ket_cd () %>"
Value = "<% = (pdctvtinfovo) pdctvtitem). getssn_sydn_cd () %>">