This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Handle xml response using ajax call using struts action?

 
prabhu pandurangan
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic