RE: Using Jasper for template processing?
--- CPC Livelink Admin [EMAIL PROTECTED] wrote: the servlets except in a web environment. But, being able to do what JG wants can be useful - for instance, to periodically dump a formatted report to a static file, so that daily reports are available and can be processed during system off peak hours. Yes that is good example. Simply speaking: 1) I need TEMPLATE PROCESSOR in Java 2) My templates are NOT web related 3) The only thing I need to use from Jasper is "JSP to JAVA" compiler, modified to generate HTTP uninfected Java code. Regards Gergi = Jaroslav Gergic (Gergi) mailto:[EMAIL PROTECTED] http://nenya.ms.mff.cuni.cz/~gergic/ __ Do You Yahoo!? Yahoo! Calendar - Get organized for the holidays! http://calendar.yahoo.com/
RE: Using Jasper for template processing?
How about using stock Jasper, and then applying an XSL transformation to the HTML output to clean out the HTML specific code. Seems like extra work, but would you would not need to modify the Jasper code itself. Regards, Paul -Original Message- From: Jaroslav Gergic [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 14, 2000 10:41 AM To: [EMAIL PROTECTED] Subject: RE: Using Jasper for template processing? --- CPC Livelink Admin [EMAIL PROTECTED] wrote: the servlets except in a web environment. But, being able to do what JG wants can be useful - for instance, to periodically dump a formatted report to a static file, so that daily reports are available and can be processed during system off peak hours. Yes that is good example. Simply speaking: 1) I need TEMPLATE PROCESSOR in Java 2) My templates are NOT web related 3) The only thing I need to use from Jasper is "JSP to JAVA" compiler, modified to generate HTTP uninfected Java code. Regards Gergi = Jaroslav Gergic (Gergi) mailto:[EMAIL PROTECTED] http://nenya.ms.mff.cuni.cz/~gergic/ __ Do You Yahoo!? Yahoo! Calendar - Get organized for the holidays! http://calendar.yahoo.com/
Re: Using Jasper for template processing?
Hi Jaroslav, I already make use of user-defined JSP templates on my site http://www.zzpost.com/. The webapp runs a user-defined JSP then uploads the output to the users own website. The question you need to ask is, for what reason would you take the time and trouble to "decouple" servlets from http? That is a lot of work for nothing IMHO. Just create your system so that it is web-based and you'll be fine. Dave - Original Message - From: "Jaroslav Gergic" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, November 13, 2000 3:30 AM Subject: Using Jasper for template processing? Hello Tomcat developers and advanced users! I have following question: I would like to use Jasper engine for template processing. I use Tomcat with JSPs and its good, but I would like to alter Jasper usage this way: An JSP page is compiled into a Java source where the user's JSP page extends the class HttpJspBase and overrides several methods notably _jspService(). I want to use Jasper for more generic task. Template processing independent on Servlets and HTTP. Imagine following interface: public interface Template { void renderTemplate(Writer out) throws java.io.IOException; } I want to alter Jasper to process files with JSP-like syntax (of course with other intrinsic variables accessible inside the renderTemplate() method) and generate Java source code implementing the Template interface and than compile the source code using Java compiler into executable classes. Then load and run generated classes as they have been written manually. So I ask: 1) is is possible or is Jasper tightly coupled with HTTP and Servlet API? 2) if it is possible, how to do that? (which classes can be re-used, which interfaces and classes have to be re-implemented 3) how much time it can take (1 day, 3 days, a week, two weeks, ...) Thanks for any comments and suggestions. Jaroslav Gergic = Jaroslav Gergic (Gergi) mailto:[EMAIL PROTECTED] http://nenya.ms.mff.cuni.cz/~gergic/ __ Do You Yahoo!? Yahoo! Calendar - Get organized for the holidays! http://calendar.yahoo.com/
RE: Using Jasper for template processing?
Remember, Servlets are not necessarily HTTP beasts. The servlet spec (from my perusal) specifically leaves open what kind of environment the servlet will live in. This is why there are specific HTTP extentions of the base servlet classes. Now, that being said, I don't know of any other way to use the servlets except in a web environment. But, being able to do what JG wants can be useful - for instance, to periodically dump a formatted report to a static file, so that daily reports are available and can be processed during system off peak hours. -Original Message- From: Dave Smith [mailto:[EMAIL PROTECTED]] Sent: Monday, November 13, 2000 03:25 PM To: [EMAIL PROTECTED] Subject: Re: Using Jasper for template processing? Hi Jaroslav, I already make use of user-defined JSP templates on my site http://www.zzpost.com/. The webapp runs a user-defined JSP then uploads the output to the users own website. The question you need to ask is, for what reason would you take the time and trouble to "decouple" servlets from http? That is a lot of work for nothing IMHO. Just create your system so that it is web-based and you'll be fine. Dave - Original Message - From: "Jaroslav Gergic" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, November 13, 2000 3:30 AM Subject: Using Jasper for template processing? Hello Tomcat developers and advanced users! I have following question: I would like to use Jasper engine for template processing. I use Tomcat with JSPs and its good, but I would like to alter Jasper usage this way: An JSP page is compiled into a Java source where the user's JSP page extends the class HttpJspBase and overrides several methods notably _jspService(). I want to use Jasper for more generic task. Template processing independent on Servlets and HTTP. Imagine following interface: public interface Template { void renderTemplate(Writer out) throws java.io.IOException; } I want to alter Jasper to process files with JSP-like syntax (of course with other intrinsic variables accessible inside the renderTemplate() method) and generate Java source code implementing the Template interface and than compile the source code using Java compiler into executable classes. Then load and run generated classes as they have been written manually. So I ask: 1) is is possible or is Jasper tightly coupled with HTTP and Servlet API? 2) if it is possible, how to do that? (which classes can be re-used, which interfaces and classes have to be re-implemented 3) how much time it can take (1 day, 3 days, a week, two weeks, ...) Thanks for any comments and suggestions. Jaroslav Gergic = Jaroslav Gergic (Gergi) mailto:[EMAIL PROTECTED] http://nenya.ms.mff.cuni.cz/~gergic/ __ Do You Yahoo!? Yahoo! Calendar - Get organized for the holidays! http://calendar.yahoo.com/