File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Application Frameworks and the fly likes Is DWR a MVC ?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Is DWR a MVC ??" Watch "Is DWR a MVC ??" New topic

Is DWR a MVC ??

Kaustubh Patil
Ranch Hand

Joined: Aug 13, 2001
Posts: 164

I started reading about DWR few days back. Its strikingly different from the usual web-app technologies I have worked on till date (read as huge amount of Struts). One question that invariably comes to mind is can DWR really replace MVC ?
One may argue about the usability of MVC but the more mature frameworks like Struts and JSF give lots of tools in the MVC. Validation, interpretors(struts2) etc..

From whatever I have understood about DWR from my little reading and if I can put it down in few words is that its nothing but say 'RPC over HTTP'. so, Can we really replace a MVC architecture with DWR ?

Kaustubh. Mumbai, India.
Nathan Pruett

Joined: Oct 18, 2000
Posts: 4121

No - apples and oranges - one would not replace the other. DWR is a specific library/implementation of an AJAX approach. MVC is broadly an architecture style, and various projects that use this architecture style to provide web app frameworks.

You could use DWR inside MVC web app frameworks, though this is not required.

You could design an MVC architecture where DWR provides your model and you implement the views and controllers in HTML and Javascript.

Write once, run anywhere, because there's nowhere to hide! - /. A.C.
I agree. Here's the link:
subject: Is DWR a MVC ??
It's not a secret anymore!