This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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


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: 145
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
 
Have you checked out Aspose?
 
subject: Handle xml response using ajax call using struts action?
 
It's not a secret anymore!