From ba4d39e3754ed4629320ae2b3b3c456fc539fa40 Mon Sep 17 00:00:00 2001 From: "James M.Z" Date: Wed, 18 Apr 2018 13:42:43 +0800 Subject: [PATCH 1/2] Update README.md --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index da0dfa4..ec7bae3 100755 --- a/README.md +++ b/README.md @@ -47,6 +47,10 @@ A demonstration for comet technology: Live Demo Site: * http://smalltalk.tinystruct.org/ +* http://smalltalk.tinystruct.org/?q=say/Praise%20to%20the%20Lord!
+* http://smalltalk.tinystruct.org/?q=praise
+* http://smalltalk.tinystruct.org/?q=youhappy
+* http://smalltalk.tinystruct.org/?q=say/%E4%BD%A0%E7%9F%A5%E9%81%93%E5%85%A8%E4%B8%96%E7%95%8C%E6%9C%80%E7%95%85%E9%94%80%E7%9A%84%E4%B9%A6%E6%98%AF%E5%93%AA%E4%B8%80%E6%9C%AC%E4%B9%A6%E5%90%97%EF%BC%9F Results in your browser should be: From 8d3dbe60c3b32aca655e2ce2e19f72952e957e6a Mon Sep 17 00:00:00 2001 From: "James M.Z" Date: Wed, 13 Jun 2018 14:33:25 +0800 Subject: [PATCH 2/2] Update hello.java --- src/tinystruct/examples/hello.java | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/tinystruct/examples/hello.java b/src/tinystruct/examples/hello.java index 86cb1c5..4477321 100644 --- a/src/tinystruct/examples/hello.java +++ b/src/tinystruct/examples/hello.java @@ -76,25 +76,6 @@ public static void main(String[] args) throws ApplicationException, Instantiatio ApplicationManager.call("say/Merry Christmas!", null); } - String path="i/say/hi/James/How are you?"; - int pos = -1; - String tpath = path; - StringBuffer buffer=new StringBuffer(); - buffer.delete(0, 1); - while ((pos = tpath.lastIndexOf('/'))!=-1) { - tpath = tpath.substring(0, pos); - System.out.println("route:"+tpath); -// action = actions.getAction(tpath, method); - - if(true) { - String arg = path.substring(pos+1); - String[] _args = arg.split("/"); - - for(String arg1 : _args) - System.out.println(arg1); - } - } - } }