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 Getting value from dropdown list 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 "Getting value from dropdown list" Watch "Getting value from dropdown list" New topic
Author

Getting value from dropdown list

manisha makwana
Ranch Hand

Joined: Sep 14, 2007
Posts: 37
Hi,

I have a dropdown list with 14 value in dropdown, and i am using Javascript for this.When user select anyof this vlaue and click go button then i want to access this value in my dispatchaction class.I just want to access the value thats it.How to do this?What configuration i have to do in my struts-config.xml.
You can say i have a dropdown list of colors red,blue.yello.... and a go button.When user clicks on go i have to access this color value in dispatchaction class
manisha makwana
Ranch Hand

Joined: Sep 14, 2007
Posts: 37
And i am using Struts Dyanaction form
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Getting value from dropdown list
 
Similar Threads
Show the selected value in dropdown again
dynamic drop down list
How to create a h:selectOneMenu with a default value?
display result in the same jsp page
Hiding group of rows depending on dropdown list