6 ms·
Jersey actually has reasonable support for the traditional MVC thing too, you just return a Viewable from your actions [1]. I think out-of-the-box Jersey only s
by murz 14y ago
Jersey actually has reasonable support for the traditional MVC thing too, you just return a Viewable from your actions [1]. I think out-of-the-box Jersey only supports JSP templates but it's easy to write custom view processors, I hacked one up for Mustache templates a few months ago [2].
[1] http://sleeplessinslc.blogspot.com/2012/02/jersey-jax-rs-mvc-killed-spring-mvc.html http://sleeplessinslc.blogspot.com/2012/02/jersey-jax-rs-mvc...
[2] https://github.com/murz/jersey-mustache/blob/master/src/main/java/com/hazardousholdings/jersey/mustache/MustacheViewProcessor.java https://github.com/murz/jersey-mustache/blob/master/src/main...