> -----Original Message----- > From: Guy Pardon [mailto:[email protected]] > Sent: Friday, February 03, 2012 9:54 AM > To: [email protected] > Subject: REST and MVC for webapps > > Hi, > > I am looking for examples and/or information on using CXF/REST/JAXRS as > the controller for html webapps - instead of Struts or JSF. > > Any pointers available?
Just a high-level comment on the approach: If you're building a "conventional" web site where you move from page to page, a REST service would likely only represent a portion of your application. You'd still want to have a "conventional" web framework like Spring MVC, Struts, or JSF (which provides some additional paradigms). If, however, you're building a "single-page web application" where server communication is primarily done through AJAX calls from a Javascript framework like Dojo or others, then a REST service might become more prominent. The point is that a REST service handles a certain kind of interaction pattern, and page to page navigation doesn't quite fit that.
