JSON, AJAX and Mustang

JSON (JavaScript Object Notation) is a lightweight data interchange format. It uses (subset) of JavaScript object/array literal syntax as data interchange format. Now, Mustang Java SE 6 includes Rhino based JavaScript engine and javax.script API. This implies you can transfer and read data from web/app server in JSON format and read the same in client (web browser or JavaWebStart) side easily -- all you have to do is to make reader from your (URL) input stream and eval it!

You have all AJAX elements within JDK:
  • JavaScript
  • JSON or XML for data interchange
  • asynchronous -- you can use java.lang.Thread from JavaScript or from Java code!
So, welcome to AJAX with JDK (with or without browser client?)
Comments:

With the advent of core JavaScript support in the Java, it does not necessarily mean, true AJAX has finally arrived in the Java world. I believe that AJAX belongs to the ultra-thin paradigm of browser-based content. In Java, Swing is still king of the hill. cheers :)

Posted by Richard Relos on November 10, 2005 at 02:58 AM IST #

Post a Comment:
Comments are closed for this entry.
About

sundararajan

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today
Bookmarks
Links

No bookmarks in folder

Blogroll

No bookmarks in folder

News

No bookmarks in folder