From 5c47e0070e3accd5ea57486a1683a6752b3c4d01 Mon Sep 17 00:00:00 2001 From: slaws Date: Mon, 16 Aug 2010 20:43:22 +0000 Subject: Correct the DOJO callback configuration and show the result at client and server git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@986127 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/java/calculator/AddServiceImpl.java | 1 + .../src/main/webapp/calculate.html | 14 +++++++------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/sca-java-2.x/trunk/samples/binding-jsonrpc/contribution-calculator-webapp/src/main/java/calculator/AddServiceImpl.java b/sca-java-2.x/trunk/samples/binding-jsonrpc/contribution-calculator-webapp/src/main/java/calculator/AddServiceImpl.java index 8eabfa6773..e16b352021 100644 --- a/sca-java-2.x/trunk/samples/binding-jsonrpc/contribution-calculator-webapp/src/main/java/calculator/AddServiceImpl.java +++ b/sca-java-2.x/trunk/samples/binding-jsonrpc/contribution-calculator-webapp/src/main/java/calculator/AddServiceImpl.java @@ -37,6 +37,7 @@ public class AddServiceImpl implements AddService { public AddBean addComplexParam(AddBean aBean) { aBean.setN3(aBean.getN1() + aBean.getN2()); + System.out.println("Adding " + aBean.getN1() + " to " + aBean.getN1() + " gives " + aBean.getN3()); return aBean; } diff --git a/sca-java-2.x/trunk/samples/binding-jsonrpc/contribution-calculator-webapp/src/main/webapp/calculate.html b/sca-java-2.x/trunk/samples/binding-jsonrpc/contribution-calculator-webapp/src/main/webapp/calculate.html index 43d80ec70f..087cc42ddd 100644 --- a/sca-java-2.x/trunk/samples/binding-jsonrpc/contribution-calculator-webapp/src/main/webapp/calculate.html +++ b/sca-java-2.x/trunk/samples/binding-jsonrpc/contribution-calculator-webapp/src/main/webapp/calculate.html @@ -21,10 +21,11 @@ Apache Tuscany binding-jsonrpc Calculator WebApp with DOJO Sample - + @@ -53,11 +54,10 @@

Apache Tuscany binding-jsonrpc Calculator WebApp with DOJO Sample

- - + 1 + 1 = -
+
- \ No newline at end of file + -- cgit v1.2.3