Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

dependent dropdown countries and cities in struts2

 
mehdi chorsi
Greenhorn
Posts: 25
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9214
9
Linux Mac OS X Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
mehdi chorsi
Greenhorn
Posts: 25
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9214
9
Linux Mac OS X Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 25
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i don't want to you do my work just i need a sample code
 
Joe Ess
Bartender
Posts: 9214
9
Linux Mac OS X Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 25
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic