If you don’t know DWR(Direct Web Remoting), you should check this framework right now. They define themselves as the ‘easy AJAX’ for Java. And they give easiness in the development, but they also give something not so easy to measure like increase in the productivity of Web developments.
Our experience with DWR has been more than satisfactory, and I will try to enumerate why I think so:
- Separation of roles: Java developers build business logic, and expose the business logic to the HTML+JS developers. Just like building a SOA architecture. HTML+JS developers connect to the service layer and build the UI layer, and they don’t have to care about scriptlets, java tags or JSTL stuff.
- Forget about Forms classes or DynaForms (if you are working with Struts, but other MVC can apply). Create Java POJOs and use them. Period.
- You don’t need to rely on MVC frameworks to build web apps. You can follow the MVC pattern, but you don’t need to care about configuration files, Action classes and other plumbing around these frameworks. You just need a Controller class, accessible from DWR, and a good set of POJOs as Transfer Objects between the browser and the server.
- It includes an excellent set of utilities for the repetitive tasks. Once you manage them, they really help.
- Documentation: above the average if we compare with other frameworks.