This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Handle xml response using ajax call using struts action? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Handle xml response using ajax call using struts action?" Watch "Handle xml response using ajax call using struts action?" New topic
Author

Handle xml response using ajax call using struts action?

prabhu pandurangan
Ranch Hand

Joined: May 23, 2008
Posts: 120
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
The most likely cause of the problem is that your action does not produce valid XML. For example, the statement:

clearly produces invalid XML. I'd suggest having your action class produce a System.out.println of the final result to be returned. Then cut and paste that string that is output into a file and see if Internet Explorer can read the document without errors. Then you know that at least you have valid XML.


Merrill
Consultant, Sima Solutions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Handle xml response using ajax call using struts action?
 
Similar Threads
Ajax: responseXML, getElementsByTagName
showing load not a function
textbox validation in javascript
complex XML doct & SAX parsing
Help with JSON