[picocontainer-dev] PicoCall : "every object has a URL"

Paul Hammant <[email protected]> Thu, 30 Oct 2008 08:14:11 -0700
Newsgroups gmane.comp.java.picocontainer.devel
Message-ID <[email protected]>
This is going to suit "thin server" webapps most. And I'm thinking  
Dojo looks to be elegant/simple in respect of that.

If a webapp's JS would do an XHR in this style  ...

     http://localhost:8080/picocall-webapp/some/package/structure/Cart/addTo?make=ford&model=focus

... the following JSON will result ....
     {"result":true}
Obviously, Authentication & Authorisation are still applicable, so  
universal access to objects method's directly is not a security concern.
For 'Example 2' from http://today.java.net/pub/a/today/2006/04/27/building-ajax-with-dojo-and-json.html
There's a Dojo web app that issues XHR requests to a JSP page to get  
back JSON result

      http://localhost:8080/dojo_json/actions/book.jsp?bookId=1
      {"bookId":1,"title":"Crime and  
Punishment","isbn":"0679734503","author":"Fyodor Dostoevsky"}

There's a zip containig a built that makes a war file that's quite  
easy. I'm thinking of copying that app our Svn and converting it to be  
a PicoCall managed thing.

Questions for the gang.

1) Does anyone think I should concentrate on something other than Dojo?
2) Is there a better publically available example to fork ?

- Paul