|
From: Bill B. <bb...@re...> - 2013-06-10 12:33:18
|
Why would you want to deliver JSP pages via Resteasy? Let the servlet container do this. On 6/10/2013 8:21 AM, Gregor Jarisch wrote: > 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 > > ------------------------------------------------------------------------------ > How ServiceNow helps IT people transform IT departments: > 1. A cloud service to automate IT design, transition and operations > 2. Dashboards that offer high-level views of enterprise services > 3. A single system of record for all IT processes > http://p.sf.net/sfu/servicenow-d2d-j > _______________________________________________ > Resteasy-developers mailing list > Res...@li... > https://lists.sourceforge.net/lists/listinfo/resteasy-developers > -- Bill Burke JBoss, a division of Red Hat http://bill.burkecentral.com |