|
From: Gregor J. <gr...@ja...> - 2013-06-10 12:21:58
|
Hi there, I am trying to deliver jsp pages via resteasy. After some search in the web it seems to me that there is an option for this in jersey, but not in resteasy. I am aware that resteasy integrates with seam and spring - but both are too heavy weight to be included only for the sake of delivering simple JSPs. I have found an interesting approach: http://code.google.com/p/htmleasy/ Simple, small library providing this feature. Unfortunately it doesn't work with resteasy 3.0 (beta-6). This class implements the MessageBodyWriter: http://code.google.com/p/htmleasy/source/browse/trunk/src/main/java/com/googlecode/htmleasy/provider/ViewWriter.java This class includes the jsp: http://code.google.com/p/htmleasy/source/browse/trunk/src/main/java/com/googlecode/htmleasy/View.java ...but it ends up in an infinitive recursive stacktrace. I know that this is not an resteasy problem - but it would be great to be able to return JSPs without introducing other technologies. Can someone take a quick look at those two classes and give me a hint what the problem might be..? It might be something easy to fix.. Second, wouldn't that be something to include into resteasy in a future release? Thanks. Gregor |