Posting again..I am doing a double combo box with Ajax on Struts. I have all things in place..(I believe so) but i cant get the output on the JSP... Struts 1.2.9, JDK 1.4. I had SOPs in the Class and I get the structure of the XML correct as made by the class. Ive checked out Merrill's link and made all necessary changes. Even Eric helped me some network error, but i cant seem to get the response on the JSP.. On IE the readyState goes on like 1-2-3-4. and it goes in the Loop for the reponse. But XRows.length returns 0. Dunno y??? PLEASE help... ------------------ Index.jsp ----------
I haven't examined your code thoroughly, and couldn't tell you exactly what's wrong, but here are a few thoughts:
3- Even though I've written a lot of dependent select boxes, I've done all mine using the DWR framework, which I find much easier to implement than writing the AJAX calls and parsing the data myself.
4- Here is a link to a BLOG entry of someone's code who is doing exactly what you're trying to do. You may find it helpful.
Hi Merrill, Thanks a lot for your inputs. I wanted to use ResponseXML as the client wanted to do so...(reasons??). And yes, I read all your inputs on all the topics..Its so nice of you and all others who spare their precious time and give valuable suggestions.
I had already checked the link to the blog that you referred to. But of all the links that I found on net were either incomplete ( they were pointers to the way to do it) or they were on .NET. For a person like me, who understands little of .NET/VB the material was of little use.Plus none of them was on Struts framework with interaction with the DB.
Now that i have implemented it, I would like to give that code so that it may be put on javaranch and anybody else may be able to use it straight away. If you feel it would help people, i can post the working code.