I need to pass the value and text of select box to java action class in Struts2. I have a map object that supply key value to the select box.
<s:select multiple="true" size="10" name="reportColumns" list="reportHeader" />
suppose my option is:
<option value="project.name">projectname</option>
I need to pass both project.name(value)
and projectname(text)
to java class.
i came to know its possible to sent value as project.name.projectname
, but i don't want to like as above.