Could you use httpunit's servlet runner to execute the resultant
servlet? 

http://httpunit.sourceforge.net/doc/servletunit-intro.html

I suppose it depends on how complex of a JSP you are working with. If
you can assume that you don't have to worry about redirects or anything
other than vanilla output from the JSP, you could probably come up with
a solution using this... (Of course, I've never done anything like it,
so I can't vouch for any of it.)

-Wes 

> -----Original Message-----
> From: Juan Espinosa [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, December 21, 2006 11:17 AM
> To: 'Struts Users Mailing List'
> Subject: RE: OFF RECORD
> 
> Yes i see jasper...i could compile a jsp...but i cant execute 
> it and get the
> resultant html....
>  
> 
> -----Mensaje original-----
> De: Wesley Wannemacher [mailto:[EMAIL PROTECTED] 
> Enviado el: jueves, 21 de diciembre de 2006 12:14
> Para: Struts Users Mailing List
> Asunto: RE: OFF RECORD
> 
> Have you looked at Tomcat's Jasper compiler?
> 
> http://www.docjar.com/docs/api/org/apache/jasper/compiler/Comp
> iler.html
> 
> I would assume that with the jars in place and some coding to 
> setup the
> context, it could be pretty easy to do as you wish.
> 
> -Wes 
> 
> > -----Original Message-----
> > From: Juan Espinosa [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, December 21, 2006 10:22 AM
> > To: 'Struts Users Mailing List'
> > Subject: OFF RECORD
> > 
> > Hi to all, i have a question off record........but is related to web
> > 
> > Anyone has documentation or examples of how
> > 
> > 1) Compiling a jsp file
> > 3) Executing this jsp file (the servlet generated)
> > 4) Get the html ths jsp generates....
> > 
> > I want to do this programatically .... I want to use the jsps as 
> > templates for newsletters....
> > 
> > Thanks
> > 
> >     Juan Espinosa
> > 
> > --
> > No virus found in this outgoing message.
> > Checked by AVG Free Edition.
> > Version: 7.5.432 / Virus Database: 268.15.26/594 - Release
> > Date: 20/12/2006
> > 15:54
> >  
> > 
> > 
> > 
> ---------------------------------------------------------------------
> > 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]
> 
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.432 / Virus Database: 268.15.26/594 - Release 
> Date: 20/12/2006
> 15:54
>  
> 
> -- 
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.5.432 / Virus Database: 268.15.26/594 - Release 
> Date: 20/12/2006
> 15:54
>  
> 
> 
> ---------------------------------------------------------------------
> 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]

Reply via email to