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

dependent dropdown countries and cities in struts2

mehdi chorsi
Greenhorn

Joined: Jun 05, 2013
Posts: 25
Hello

i'm new in struts 2 and in jquery i have 2 dropdown box in my jsp page one of them is contries and amother is states now i want to load states from database when i select a country in jsp page without submit i searched alot in google there are many way to do for example with jquery jason and ajax but i realy confused and i could not do that .
can somebody help me and give me a good sample step by step and explain me
thanks in advance


Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8867
    
    8

Struts has a doubleselect tag specifically for the situation you describe.
If you want to use AJAX, and I can understand why with countries/cities, I'd use the Struts jQuery Plugin. It has a select tag that one can put together to make a doubleselect structure with.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
mehdi chorsi
Greenhorn

Joined: Jun 05, 2013
Posts: 25
thank you for your reply i told i'm new can you send me a sample code step by step i'm realy confused
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8867
    
    8

We are happy to help people learn but we will not do your work for you. We're all just volunteers helping out in our free time, not unpaid consultants.
Our Struts FAQ has links to some good learning resources. The Struts 2 Getting Started Guide is another good place to start. I recommend completing a couple of tutorials so you get the basics of how the framework functions before trying something like AJAX.
Once you've got the basics, feel free to come back here with whatever questions you have. And don't forget, the better question you ask, the more help we can be.
mehdi chorsi
Greenhorn

Joined: Jun 05, 2013
Posts: 25
i don't want to you do my work just i need a sample code
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8867
    
    8

The links in my first post go to numerous examples. If you did not understand those, did you read the documentation and tutorials in my second post to try to gain an understanding of Struts before attempting AJAX?
mehdi chorsi
Greenhorn

Joined: Jun 05, 2013
Posts: 25
ok thanks let me look the your link
and thank you to reply and your support
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: dependent dropdown countries and cities in struts2