• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Struts with ajax help?

 
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi friends
i am working on struts application
now i want to use ajax for dynamic dropdown lists(ie.. if user selects country from one dropdown list, the next one should show the states of that country )
as we know that we are passing url to javascript and from there we are executing some servlets or jsp and we get the result back to this page.

if we go like this in struts application, this is struts architecture violation.

so how to do this in struts(struts+ajax) without architecture violation.
please help me
any help will greatly cherished

regards,
Mallik
 
Ranch Hand
Posts: 180
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
This link would get you going i guess.
https://coderanch.com/t/54752/Struts/reponseXML-empty-Ajax-Struts
 
Ranch Hand
Posts: 948
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I do not think that the architecture police will come and get you! ;-) I suggest searching this form for the term "ajax" as a good place to start. I am considering integrating AjaxAnywhere into an existing Struts application (http://ajaxanywhere.sourceforge.net/). It is probably not the best solution for a new project but seems okay for a "legacy" application.

- Brent
 
clojure forum advocate
Posts: 3479
Mac Objective C Clojure
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It smells like Scriptaculous autocompleter contorl...
 
No thanks. We have all the government we need. This tiny ad would like you to leave now:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic