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 problem in implementing the dropdown box based on the selection of other dropdown using struts2 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 "problem in implementing the dropdown box based on the selection of other dropdown using struts2" Watch "problem in implementing the dropdown box based on the selection of other dropdown using struts2" New topic
Author

problem in implementing the dropdown box based on the selection of other dropdown using struts2

Sampath Uppula
Greenhorn

Joined: Aug 25, 2008
Posts: 5
I am using Struts2.

in a JSP page i have 5 dropdown boxes, based on the selection of the first dropdown i want to fill the second dropdown, the values should come from the database.
simillarly, third dropdown depends on second dropdown and continues till 5th dropdown.

can anybody suggest a way to implement the same.

i have tried the same in the struts 1.x but not able to implement (no luck).
if i go for plain JSP & AJAX implementation then its working but i want use the Struts 2 framework to implement the same.

appreciate your quick response.

Thanks,
Sampath.
Shankar Tanikella
Ranch Hand

Joined: Jan 30, 2011
Posts: 329

Sampath Uppula wrote:if i go for plain JSP & AJAX implementation then its working

The same should be applicable with any framework, only thing that might change is the way you call AJAX on change of your select box. What is the actual problem?



Have Fun with Java
little,little.. little by little makes a lot..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem in implementing the dropdown box based on the selection of other dropdown using struts2
 
Similar Threads
dropdown selection in Struts2
struts2
Struts1 and Struts2
Struts2: Server side response.....
Struts2 mapping query