You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@jakarta.apache.org by "David J. Willkomm" <dw...@opentext.com> on 2000/01/19 22:20:58 UTC
Embedded Tomcat?
I am building a JSP 1.1 container for a cross-platform, web-enabled application server and was hoping to use Jasper 1) in the runtime context of my container to generate classes from JSP source (this may be on the TODO list; see excerpt below), and 2) at build time via a command line interface to generate Java source from JSP source (this is already on the TODO list; see excerpt below). Specifically, I need to generate classes in specific packages with specific names that extend a specific class.
I have successfully executed a Tomcat generated class in my container by pilfering the Java source from Tomcat's work directory, adding my package statement, modifying the class name and extends clause, and commenting out the _jspx_init() related code.
My question is, (how) can my container invoke Jasper in order to generate classes compatible with my container? I have started by implementing a custom Mangler and JspEngineContext; however, they assume a runtime context that makes it difficult to embed in my server.
Any help is appreciated!
Dave
$Id: TODO,v 1.4 1999/12/09 03:14:59 craigmcc Exp $
* Tomcat core
* Better factor out parsing and processing modules to make clearly
separated lines between servers and containers.
* Work with J2EE team and other server vendors to better define the
interfaces that allow Tomcat to be embedded into their products.
* Implement command line compilation of JSP to servlets. Make this
an Ant task.