Home

Spacebug open source initiative

Primary links

  • Get involved
Home

Navigation

  • Documentation
  • Projects
    • Ajaxdo
    • JComet
    • MantaRay
    • Spring-Dashboard
    • JNI.NET
  • Blogs
  • Downloads

Tag cloud

Architecture Ant Drupal eclipse JSP .NET Reviews JavaScript AJAX Tips Open source Java
more tags


Add to Google Reader or Homepage

Poll

Best for web dev:

Recent blog posts

  • Silverlight 2.0 Calculator Example Application
  • Useful tool - Vista Battery Saver
  • Does the open source professional services business model suck?
  • PHP calling .NET - PHP to WCF calls with parameters
  • Adding Spacebug to Technorati.
  • PHP calling .NET - PHP to WCF communication
  • Language syntax's, performance, PHP, Ruby, Java and who's better? Ahhhh!
  • Does Google want us to switch from Internet Explorer to Firefox?
  • PHP calling .NET - Running WCF service with basicHttpBinding
  • Tip: Visual Studio 2008 fails to debug WCF web service
more

User login

  • Create new account
  • Request new password

JSP

Tip: how to write an XML document with JSP for AJAX applications

Submitted by Amir Shevat on Fri, 07/18/2008 - 11:28
  • AJAX
  • Java
  • JavaScript
  • JSP
  • Tips

AJAX applications usually connect to a server side application and request data in the form of XML. When the server side is written in JSP (Java Server Pages), for example a spring-framework web application with JSP views, writing the XML response is sometimes problematic.
The problem:
When using JSP to format the data in to XML and send it to the AJAX application, the XML is not recognized as XML (empty DOM object) and the AJAX application does not function properly.

  • Amir Shevat's blog
  • Add new comment
  • Read more
Powered by Drupal, an open source content management system
Spacebug.com (c)2006
RoopleTheme