This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman 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 Building Microservices this week in the Design 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: 3479

It smells like Scriptaculous autocompleter contorl...
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Struts with ajax help?
 
jQuery in Action, 3rd edition