File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts with ajax help?" Watch "Struts with ajax help?" New topic

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


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

Joined: May 15, 2006
Posts: 180
This link would get you going i guess.

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 ( It is probably not the best solution for a new project but seems okay for a "legacy" application.

- Brent
Hussein Baghdadi
clojure forum advocate

Joined: Nov 08, 2003
Posts: 3479

It smells like Scriptaculous autocompleter contorl...
I agree. Here's the link:
subject: Struts with ajax help?
It's not a secret anymore!