Our changes are things like diagnostic trace/logs, which we can't have 
permanently switched on for performance reasons.  We might want to switch them 
on, occasionally, at a customer site.

Indeed, we don't want to have them permanently present in the JSP at all (i.e. 
convert the pre-processing into a run-time check), also for performance 
reasons.  That was the original motivation for making this stuff pre-processed.

Edward.

-----Original Message-----
From: Bernhard Slominski [mailto:[EMAIL PROTECTED]
Sent: 18 July 2005 10:58
To: 'Tomcat Users List'
Subject: AW: Preprocessing JSP pages


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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to