You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by do...@apache.org on 2009/11/13 10:35:34 UTC

svn commit: r835789 - /ofbiz/trunk/framework/webslinger/websites/webslinger/www/TestSQL.groovy

Author: doogie
Date: Fri Nov 13 09:35:33 2009
New Revision: 835789

URL: http://svn.apache.org/viewvc?rev=835789&view=rev
Log:
Send the debug to the browser, instead of the console.

Modified:
    ofbiz/trunk/framework/webslinger/websites/webslinger/www/TestSQL.groovy

Modified: ofbiz/trunk/framework/webslinger/websites/webslinger/www/TestSQL.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webslinger/websites/webslinger/www/TestSQL.groovy?rev=835789&r1=835788&r2=835789&view=diff
==============================================================================
--- ofbiz/trunk/framework/webslinger/websites/webslinger/www/TestSQL.groovy (original)
+++ ofbiz/trunk/framework/webslinger/websites/webslinger/www/TestSQL.groovy Fri Nov 13 09:35:33 2009
@@ -5,9 +5,9 @@
 def delegator = request.delegator
 
 def ec1 = SQLUtil.parseCondition("partyId = 'foo' AND partyTypeId = 'PARTY_GROUP'")
-println("ec1=$ec1")
+response.writer.println("ec1=$ec1<br />")
 def ec2 = SQLUtil.parseCondition(ec1.toString())
-println("ec2=$ec2")
+response.writer.println("ec2=$ec2<br />")
 //return
 
 def sql = """
@@ -33,7 +33,7 @@
         eli = sqlSelect.getEntityListIterator(delegator)
         def gv;
         while ((gv = eli.next()) != null) {
-            println("gv=$gv")
+            response.writer.println("gv=$gv<br />")
         }
     } finally {
         if (eli != null) eli.close()