By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,713 Members | 2,012 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,713 IT Pros & Developers. It's quick & easy.

question on Ajax/jsonrpc

P: n/a
Hi,

I want to build a rich client app on the web. Presently we are using
Struts and that is somewhat cumbersome for the purpose since there is a
lot of desktop application-like user interaction.

What is the difference between using the jsolait JSON-RPC functionality
vs. any Ajax framework. Which one is the "simpler" to start with ?
Which one is good for the longer term ?

With jsonrpc how does the client communicate with the server side Java
program ?
Does it use the XmlHttpRequest like Ajax or is it a totally different
mechanism ?

Any advise would be helpful.

TIA.

Sep 4 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
vk02720 wrote:
Hi,

I want to build a rich client app on the web. Presently we are using
Struts and that is somewhat cumbersome for the purpose since there is a
lot of desktop application-like user interaction.

What is the difference between using the jsolait JSON-RPC functionality
vs. any Ajax framework. Which one is the "simpler" to start with ?
Which one is good for the longer term ?

With jsonrpc how does the client communicate with the server side Java
program ?
Does it use the XmlHttpRequest like Ajax or is it a totally different
mechanism ?

Any advise would be helpful.

TIA.
Take a look at the dojo client side implementation of json-rpc:

http://dojotoolkit.org

Json, as I understand, does not use XML or SOAP formated requests, but
has its own encoding for serializing java objects as strings.

This makes it lighter (less wraparound code).

Since it uses the javascript eval function, returning a string with
paired values makes it easier to parse (not having to remove XML tags
and so on).
--
Texeme Construct
Sep 26 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.