abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r588453 - /incubator/abdera/java/trunk/extensions/json/src/main/java/org/apache/abdera/ext/json/JSONServlet.java
Date Fri, 26 Oct 2007 00:40:20 GMT
Author: jmsnell
Date: Thu Oct 25 17:40:18 2007
New Revision: 588453

URL: http://svn.apache.org/viewvc?rev=588453&view=rev
Log:
output just the doc.getRoot() and not the doc

Modified:
    incubator/abdera/java/trunk/extensions/json/src/main/java/org/apache/abdera/ext/json/JSONServlet.java

Modified: incubator/abdera/java/trunk/extensions/json/src/main/java/org/apache/abdera/ext/json/JSONServlet.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/extensions/json/src/main/java/org/apache/abdera/ext/json/JSONServlet.java?rev=588453&r1=588452&r2=588453&view=diff
==============================================================================
--- incubator/abdera/java/trunk/extensions/json/src/main/java/org/apache/abdera/ext/json/JSONServlet.java
(original)
+++ incubator/abdera/java/trunk/extensions/json/src/main/java/org/apache/abdera/ext/json/JSONServlet.java
Thu Oct 25 17:40:18 2007
@@ -93,9 +93,9 @@
           if (doc.getLanguage() != null)
             response.setHeader("Content-Language", doc.getLanguage());
           if (doc.getLastModified() != null)
-            response.setDateHeader("Last-Modified", doc.getLastModified().getTime());   
      
+            response.setDateHeader("Last-Modified", doc.getLastModified().getTime());
           OutputStream out = response.getOutputStream();
-          json.writeTo(doc, out);
+          json.writeTo(doc.getRoot(), out);
         } catch (Exception e) {
           response.sendError(500);
           return;



Mime
View raw message