aspose file tools*
The moose likes Struts and the fly likes Struts 2.0 Ajax dojo Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 2.0 Ajax dojo" Watch "Struts 2.0 Ajax dojo" New topic
Author

Struts 2.0 Ajax dojo

Todd Smith
Greenhorn

Joined: Dec 16, 2010
Posts: 25
My question is how do I get the 2nd drop down value in a struts action. I want to add both values of the boxes to the database. I can get the first but not the 2nd box.

Jesus Mireles
Ranch Hand

Joined: Mar 10, 2010
Posts: 122

Your question doesnt even make any sense but in any action you can just have a getter for the list you are trying to get ... but I'm not sure if you are asking how to get the list values or if you are asking how to get the value that the user selected and when it submits the form you are trying to get that value ...
Todd Smith
Greenhorn

Joined: Dec 16, 2010
Posts: 25
I am trying to get the value the user selected in the secound drop down box. I wanted to add a submit button that calls a struts action to update the database with the 2 values from the drop down box. The first box has a name tag that I can reference from the interceptors int he struts action but I am not sure how to reference the secound box int he action it has no name tag to create a getter for.
Jesus Mireles
Ranch Hand

Joined: Mar 10, 2010
Posts: 122

So why dont you put a name attribute?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts 2.0 Ajax dojo
 
Similar Threads
using ajax to populate select box
struts 2: ajax theme problem
problem running dojo.plugin in struts2.1.6
struts-2.1.6 -- 'dojo' is undefined
problems validation.xml in struts 2