tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benjamin Butler-Cole <...@dataconnection.com>
Subject A JSP preprocessor for Tomcat
Date Thu, 07 Aug 2003 12:52:28 GMT
Hi,

We're using Tomcat 4.1 in a production environment and have modified it to
include hooks for a JSP preprocessor.  Would you be interested in merging
this back into the main codebase?

We've created a Preprocessor interface and added code to
org.apache.jasper.compiler.ParserController to optionally instantiate an
implementation of the interface (specified in web.xml) and pass the input
JSP through it before compiling.

The preprocessor that we have implemented (which I do not propose releasing
because it is specific to our coding practices):
  - removes tracing code
  - provides an 'ifdef' function
  - removes excess carriage returns where they might be undesirable.

I'm sure that other people can think of other uses for a preprocessor.

We're using v4.1.12.  If there's any interest then I'll merge our changes
into the current version and make some diffs.

Ben



Mime
View raw message