Win a copy of The Java Performance Companion this week in the Performance 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