Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts with ajax help?

 
Mallik Avula
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • 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
 
RoshaniG Gopal
Ranch Hand
Posts: 180
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
This link would get you going i guess.
http://www.coderanch.com/t/54752/Struts/reponseXML-empty-Ajax-Struts
 
Brent Sterling
Ranch Hand
Posts: 948
  • Mark post as helpful
  • send pies
  • 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
 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It smells like Scriptaculous autocompleter contorl...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic