Hi,

I am showing a list of files in the drop down and want to show two more
options as follows

<option value="none" selected="selected">select one</option>
<option value="ALL">---------------- ALL ----------------</option>
In Struts1, we could have html:option within the html:select tag.
In Struts2, I tried to use the headerKey & headerValue attribute of
s:select, but can only add one (select one). Is there any way I can specify
a list for headers instead of manually adding it to my list in the action.

My current code snippet:

<s:select cssClass=*"InputText"* name=*"selectedFileNameCrDt"* list=*
"fileNameList"* listValue=*"itemLabel"* listKey=*"itemValue" *headerKey=*
"none"* headerValue=*"select one"*/>

Regards,
JK

Reply via email to