GeeCON Prague 2014*
The moose likes Struts and the fly likes Struts with Ajax 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" Watch "Struts with Ajax" New topic
Author

Struts with Ajax

riyas nedumpurath
Greenhorn

Joined: Jun 28, 2009
Posts: 14
I have an Action class which populates an HTML select on my JSP page from MySQL Database. I want to use AJAX to display the properties of selected product (another table in MySQL) each time select change. Someone have an idea??
Thanks
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

That's a pretty open-ended question. Unless you're using Struts 2 the answer doesn't really have anything to do with Struts, though--which version of Struts are you using? What JavaScript library/libraries are you using?
riyas nedumpurath
Greenhorn

Joined: Jun 28, 2009
Posts: 14
I am using Struts 1. As for Javascript I dont use any specific libraries, plain Javascript with XMLHttpRequest.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Ew; these days I don't see any reason to use plain JavaScript.

In any case, there's nothing special about using Ajax with Struts 1.
 
GeeCON Prague 2014
 
subject: Struts with Ajax