Author: doogie
Date: Fri Nov 13 09:35:33 2009
New Revision: 835789
URL:
http://svn.apache.org/viewvc?rev=835789&view=revLog:
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()