Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ A demonstration for comet technology:

Live Demo Site:
* http://smalltalk.tinystruct.org/
* <a href="http://smalltalk.tinystruct.org/?q=say/Praise%20to%20the%20Lord!">http://smalltalk.tinystruct.org/?q=say/Praise%20to%20the%20Lord! </a><br />
* <a href="http://smalltalk.tinystruct.org/?q=praise">http://smalltalk.tinystruct.org/?q=praise </a><br />
* <a href="http://smalltalk.tinystruct.org/?q=youhappy">http://smalltalk.tinystruct.org/?q=youhappy</a><br />
* <a href="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">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</a>

Results in your browser should be:

Expand Down
19 changes: 0 additions & 19 deletions src/tinystruct/examples/hello.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

}

}