Hi, Thanks for answering!
The REST/JAXRS paradigm offers a basic controller mechanism, and I can return text/html (and other media types) as well as forward to JSP pages. I've always disliked struts and JSF and am trying to push JAXRS to the limits - hence my question :-) Guy On 3-feb-2012, at 19:13, KARR, DAVID wrote: > -----Original Message----- > From: Guy Pardon [mailto:g...@atomikos.com] > Sent: Friday, February 03, 2012 9:54 AM > To: users@cxf.apache.org > 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.