RE: Invoking JSPs in batch like environment
You can alway execute the generated servlet in the context of tomcat. But I can't think of a solution that works just with jasper. (Jasper is just a code generator and no servlet engine) Depending on your needs there are different solutions to achieve this: - Write a programm that requests an url from tomcat and processs the result. - just use wget/curl to trigger the servlet -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, January 12, 2004 9:42 AM To: [EMAIL PROTECTED] Subject: Invoking JSPs in batch like environment I would like to use JSPs in oder to generate textfile like output in a batch program. The idea is to invoke the Servlets which have been gerenated on the basis of the JSPs. Also, the OutputStream of the JSP/Servlet Response class has to be configured and necessary bean instances have to be added as attributes before invokation. I would like to know if the Jasper library (or something else) can be used in some way to alleviate the setup of the necessary environment for the JSP execution. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Invoking JSPs in batch like environment
The servlet container has not to be part of the batch job. It's enough if there is a servlet container outside of the job that can be reached from the job. To talk to tomcat you can use HttpClient from the jakarta project. The only other option that I see is to look for a small footprint servlet container, that has enough features to perform your task. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, January 12, 2004 10:31 AM To: [EMAIL PROTECTED] Subject: AW: Invoking JSPs in batch like environment thanks for your help! However I can not use a whole webcontainer and http protocol stack in my batch app... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Invoking JSPs in batch like environment
If you are using UNIX, then wget is the answer. If you are using Windows, you will have to use Windows Scripting Host to create and instance of IE and retrieve the URL. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, January 12, 2004 1:42 AM To: [EMAIL PROTECTED] Subject: Invoking JSPs in batch like environment Hello, I would like to use JSPs in oder to generate textfile like output in a batch program. The idea is to invoke the Servlets which have been gerenated on the basis of the JSPs. Also, the OutputStream of the JSP/Servlet Response class has to be configured and necessary bean instances have to be added as attributes before invokation. I would like to know if the Jasper library (or something else) can be used in some way to alleviate the setup of the necessary environment for the JSP execution. Kindest regards, Alexander Thomas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]