File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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