Interesting - just 2 days ago I thought "if only I had JSP without http".
I'm using JSP to generate FO, which is OK since I'm using it in a web
application. But now I'd like to use the same solution outside of a
web container...

One solution could be "Pagelets" 
(http://www.urbancode.com/products/pagelets/index.jsp)
Quote: "The idea and functionality behind Pagelets is very similar to Java 
Server Pages
with one huge difference - Pagelets are not tied to the HTTP protocol."
It's not open source though. And it doesn't seem to support taglibs (which is my
personal favourite JSP feature).

Another solution would be to take an open source JSP compiler (e.g. Tomcat's 
Jasper) and
either teach it to generate code that doesn't depend on 
HttpServletRequest/Response/...
or make the generated code use some dummy implementations of the HttpServlet* 
interfaces.

Shouldn't be too hard, but I'm afraid I won't have the time to do it.


Geoffrey De Smet wrote:
>Velocity is indeed exactly what I need,
>the only problem is that it's yet another language (probably easy to 
>learn, but still). I wonder how hard it would be to create a Jelocity: 
>Velocity with JSP-like syntax.
>
>Christian Geisert wrote:
>> Geoffrey De Smet schrieb:
>>> I've worked with both FOP and JasperReports
>>> and I really prefer the FO format over jasperreport's custom format.
>>> But Jasperreports allows to use Java/POJO based transformations, so I 
>>> am wondering if this is possible in FOP.
>>>
>>> Basically the idea is to replace:
>>> - generate XML based on POJO
>>> - transform XML with XSL to FO
>>> - feed FOP the FO
>>> with
>>> - supply POJO to "JSP without http" which generates FO
>>> - feed FOP the FO
>>>
>>> Does anyone know an (open source?) library which can do something like:
>> 
>> Sounds like a template engine like velocity[1] might be something for you.
>> 
>> Christian
>> 
>> [1] http://jakarta.apache.org/velocity/index.html

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to