tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alberto Romei" <>
Subject Info on customizing jspc - jasper
Date Tue, 27 Nov 2001 18:32:35 GMT
I wanted to use JspC to generate a java program (not exactly a servlet)
which writes its output to a file on the disk instead of the
HttpServletResponse's JspWriter.

In practice, i just need to customize the fixed parts of the generated code

    public class Foo extends HttpJspBase {


    public void _jspService(HttpServletRequest request, HttpServletResponse
        throws, ServletException {

>From what i've seen, i could simply substitute JspParseEventListener in the
jasper jars, but in this way i would "throw away" the normal processing of

So, what is the correct way to customize the JSP compilation ?
Must i subclass org.apache.jasper.compiler.Compiler and call
MyCompiler.something() instead of jspc.parseFiles() ? (that would be a lot
of work... )
If so, is there any kind of documentation on how to correctly write a custom
JSP compiler ? (possibly working with future versions of tomcat, too)

Any suggestion is appreciated.



I'm new to tomcat source, so please be patient.

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message