Hi all, The closest thing that exists right now is the XTC project integrating Restlet and Facelets: http://trac.sarugo.org/xtc
Another idea would be to develop a Restlet's Request and Response wrapper for the Servlet API. Then, we could try to create a JspRepresentation and ask to an embedded JSP processor (Tomcat's Jasper?) to write it. This seems touchy but feasible. See existing RFE: "Request and Response wrapper for Servlet API" http://restlet.tigris.org/issues/show_bug.cgi?id=512 Also, I've entered a new RFE: "Support JSP representations" http://restlet.tigris.org/issues/show_bug.cgi?id=753 Anyone wants to investigate? Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org Noelios Technologies ~ Co-founder ~ http://www.noelios.com -----Message d'origine----- De : [email protected] [mailto:[email protected]] Envoyé : mercredi 25 février 2009 22:34 À : [email protected] Objet : Re: JSP/Servlet Representation Hi, I also though about JSPs as response. If you use a Servlet Container as server connector (e.g. tomcat), than it should not be so hard: Just allow the return of a redirect or whatever it is called to another Servlet (here: the JSP). Of course this is a dependency to Servlet containers, but for them it is not hard, I think. best regards Stephan Rob Heittman schrieb: > This is one of the biggest problems with JSP; it is very hard to use > it pluggably outside of its intended JEE framework (as opposed to any > of the things that work nicely with JSR223 scripting: > https://scripting.dev.java.net/) ... we have run into this in our > content management framework. Perversely, it's easier to craft a PHP > representation than a JSP one! > > On a container-specific level, it is possible to instantiate and > control your own instance of the container's JSP servlet (e.g. Jasper) > ... but this is a hack in any universe. > > On Wed, Feb 25, 2009 at 12:31 PM, Dustin N. Jenkins > <[email protected]> wrote: > >> I could treat the JSP like a FreeMarker template and just replace >> mark-ups, but then it's not really a JSP anymore, especially for >> maintainers of the code after me. ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=12289 85 ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1271904

