• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

headerKey in s:select tag in struts2.0

 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In s:select , I am using hashmap to populate the selection box. I want the first element from the hashmap to be preselected in the selectionbox. I know that I should give this value in headerkey and headerValue. I can have 2 more string properties in Action and populate them in action and use it here. Is there any alternative way ?
Here is my tag:
<s:select label="something"
list="countries"
headerKey="${countries.key}" headerValue="${countries.value}" name="selectedCountry" emptyOption="false"/>

thanks
reply
    Bookmark Topic Watch Topic
  • New Topic