How about integrating it in your ant build script? This changes your preprocessing from runtime to compile time.
Bernhard > -----Ursprüngliche Nachricht----- > Von: Edward Hibbert [mailto:[EMAIL PROTECTED] > Gesendet: Montag, 18. Juli 2005 11:32 > An: tomcat-user@jakarta.apache.org > Betreff: Preprocessing JSP pages > > > Perhaps you can help me. > > We have an application which used Tomcat v4, which I'm > migrating to use 5.5.9. We made some changes to the Tomcat > source to allow JSP pages to be preprocessed, so that we > could strip out/add in certain code branches at runtime based > on configuration. We did this by making changes to e.g. > ParserController.java. > > In retrospect this wasn't a great idea, because it meant we > had to ship our own version of Tomcat, so we're looking at > removing these changes so that we can use a vanilla version of Tomcat. > > I can roll my own different version of this preprocessing, > e.g. as part of starting Tomcat. But I'm wondering whether > there's a way you're "supposed" to do something like this? > E.g. is there a way you can register something to get invoked > when Tomcat is loading JSP, without having to hack the code to do so? > > Thanks for any help, > > Edward Hibbert. > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]