• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

dependent dropdown countries and cities in struts2

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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


 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i don't want to you do my work just i need a sample code
 
Joe Ess
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ok thanks let me look the your link
and thank you to reply and your support
 
reply
    Bookmark Topic Watch Topic
  • New Topic