This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes Tag optionsCollection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Tag optionsCollection" Watch "Tag optionsCollection" New topic

Tag optionsCollection

kiran gummadi

Joined: Jul 16, 2012
Posts: 1
in struts Tag html:ptionsCollection

please clarify the below

<htmlptionsCollection name="stateList" label="stateCodeAndName" value="value"/>

for hashmap "stateList" can i use attribute value = "value" or i have to use value ="key" ??

What is the difference between both?

Please replay ASAP..

I agree. Here's the link:
subject: Tag optionsCollection
Similar Threads
<h:selectOneMenu> problem
h:selectOneMenu breaking up in IE 9
Cannot find bean in any scope
dependent select list options
populating SelectOneMenu using ArrayList