|
From: Gregor J. <gr...@ja...> - 2013-06-10 12:53:54
|
I don't necessarily need resteasy to deliver the jsp pages by itself, but I want resteasy to handle the request and at the response time define which jsp page should get delivered to the user. if resteasy cannot deliver the jsp - is there a way to forward to the JSP/servlet container (without redirecting to a different URI) ? ----- Original Message ----- From: "Bill Burke" <bb...@re...> To: res...@li... Sent: Monday, June 10, 2013 2:33:10 PM Subject: Re: [Resteasy-developers] returning JSPs as response 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 ------------------------------------------------------------------------------ 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 |