Fix documentation

git-svn-id: https://svn.apache.org/repos/asf/turbine/core/branches/TURBINE_2_3_BRANCH@959080 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/xdocs/services/jsonrpc-service.xml b/xdocs/services/jsonrpc-service.xml
index c942cc6..da714fc 100644
--- a/xdocs/services/jsonrpc-service.xml
+++ b/xdocs/services/jsonrpc-service.xml
@@ -56,17 +56,17 @@
 

 <p>

 There are a number of things you need to do in order to add AJAX functionality

-to your webapp.  First you implement the functions:

+to your webapp. First you implement the functions:

 </p>

 

 <source><![CDATA[

 public class MyJsonFunctions

 {

-    private String getHello(String clientParameter)

+    public String getHello(String clientParameter)

     {

         return "Hello " + clientParameter;

     }

-    private String getGoodbye(String clientParameter)

+    public String getGoodbye(String clientParameter)

     {

         return "Goodbye " + clientParameter;

     }

@@ -82,9 +82,7 @@
 {

     public void doOutput(RunData data) throws Exception

     {

-        User user = data.getUser();

-

-        MyJsonFunctions myFunctions = new MyJsonFunctions(user.getName());

+        MyJsonFunctions myFunctions = new MyJsonFunctions();

 

         // Session specific

         TurbineJsonRpc.registerObject(data.getSession(), "myFunctions", myFunctions);

@@ -153,7 +151,7 @@
 <p>

 In these pages you also need to include the JavaScript necessary to process the

 JSON calls - this file is available as part of the JSON-RPC-Java distribution

-(it is included in the <code>webapps\jaonrpc</code> directory):

+(it is included in the <code>webapps\jsonrpc</code> directory):

 </p>

 

 <source><![CDATA[