This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes DOJO  vs DWR Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "DOJO  vs DWR" Watch "DOJO  vs DWR" New topic


Kuladip Yadav
Ranch Hand

Joined: Jul 30, 2008
Posts: 162

Hi all,

I had created spring based web application . At that time I have used
DWR(Direct Web Remoting) for ajax client side.

I don't know about more about Ajax but it I can implemented it easily using DWR.

Does DOJO having such kind of abstraction for Ajax.
Can we compare DOJO with DWR ?

For Ajax which is best and easy ?
[ September 30, 2008: Message edited by: Kuldeep Yadav ]
Frank Zammetti
Ranch Hand

Joined: Dec 16, 2004
Posts: 136
Dojo doesn't have anything specifixally like DWR because DWR is partly a client-side technology. That being said, Dojo does have some RPC-like mechanisms that aren't too bad.

THAT being said, I personally recommend DWR for Java developers over any other option. To me it's just heads and shoulder above the rest, Dojo included. For non-Java developers the story might be a little different.

-- <br />Frank W. Zammetti<br />Founder and Chief Software Architect<br />Omnytex Technologies<br /><a href="" target="_blank" rel="nofollow"></a><br />AIM/Yahoo: fzammetti<br />MSN:<br />Author of "Practical Ajax Projects With Java Technology"<br /> (2006, Apress, ISBN 1-59059-695-1)<br />and "JavaScript, DOM Scripting and Ajax Projects"<br /> (2007, Apress, ISBN 1-59059-816-4)<br />Java Web Parts - <a href="" target="_blank" rel="nofollow"></a><br /> Supplying the wheel, so you don't have to reinvent it!
Kuladip Yadav
Ranch Hand

Joined: Jul 30, 2008
Posts: 162

Dojo does have some RPC-like mechanisms

Does Dojo can be used in Web Service client ?

Any link realated to that ?
Chris Boldon
Ranch Hand

Joined: Aug 10, 2006
Posts: 190
DOJO is on the presentation layer...
Personally, I wouldn't recommending using your presentation layer to directly access a webservice...
Frank Zammetti
Ranch Hand

Joined: Dec 16, 2004
Posts: 136
If you mean can Dojo call JSON-P based web services, then yes. If you mean the full-stack web services, using SOAP, WSDL, and so on, then I don't believe so.

I have to disagree with Chris on this one though... a client calling a web service is a very powerful concept that allows for all sorts of cool mashups, so I'm all for that (one of the projects in the book is exactly that). Now, if we're talking about calling full-blown web services from a JavaScript client, then I'd tend to agree, if for no other reason than all the XML parsing/generating code you'd need, which would be unpleasent.
jQuery in Action, 2nd edition
subject: DOJO vs DWR
Similar Threads
relationship between ajax, dojo,dwr, json
Dojo and Jquery and DWR
Which AJAX framework?
Dojo vs. DWR