How to have a if with two conditions in Struts2

前端 未结 2 1012
我在风中等你
我在风中等你 2021-01-05 19:03

I iterate through a list of items, and need to show a specific dropdown list if the state of element is equal to student or teacher. The following code shows all fields but

2条回答
  •  时光取名叫无心
    2021-01-05 20:00

    You don't need to have those conditions and if tag at all if you need to have the select tag being preselected on the Status you should provide valid keys. The headerKey = "-1" is invalid because it's not a String. Try headerKey = " ", the keys should not be empty. if the preselected value doesn't match the key the headerValue will be shown. For example

        
          
    
    

提交回复
热议问题