This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Struts and the fly likes Struts with ajax help? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts with ajax help?" Watch "Struts with ajax help?" New topic
Author

Struts with ajax help?

Mallik Avula
Ranch Hand

Joined: Nov 30, 2006
Posts: 86
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


Thanks & Regards<br />Mallik Avula<br />SCJP1.4
RoshaniG Gopal
Ranch Hand

Joined: May 15, 2006
Posts: 180
Hi,
This link would get you going i guess.
http://www.coderanch.com/t/54752/Struts/reponseXML-empty-Ajax-Struts


Regards,<br />Roshani
Brent Sterling
Ranch Hand

Joined: Feb 08, 2006
Posts: 948
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

Joined: Nov 08, 2003
Posts: 3476

It smells like Scriptaculous autocompleter contorl...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts with ajax help?
 
Similar Threads
Problem with autocomplete.
Can I access java class using Ajax
How to retrieve data from database when ever select in drop down list?
Struts 2 + Ajax
Migrating Application - From Struts with AJAX to JSF with AJAX