I want to display the key value bean based on sorting of value in Struts 2.
<s:select list="preferredBranchList" listKey="displayKey"
listValue="displayValue" name="preferredBranch"
cssClass="selectpicker show-tick" required="true" />
It's sorting of the values based on listKey
. Please, suggest me to sort the values based on listValue
.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…