File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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: 122
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?