Why? Maybe JSP isn't your answer and instead write out the stream separately directly from your servlet.
Sent from my iPhone > On 4 Mar 2015, at 05:44, JOSE L MARTINEZ-AVIAL <jlm...@gmail.com> wrote: > > Hello mck, > I'm not going to compile the JSP on the fly on every request, just when > they change. Basically we have a token in the JSP that we want to replace > with the line number where the token is. Every time the JSP is requested, > we will check if the JSP file has been updated since the last time it was > requested, and if so, change the token in the JSP and call the > requestdispatcher as usual, so it can process it. > > JL > > 2015-03-03 13:33 GMT-05:00 mck <m...@semb.wever.org>: > >> Compiling jsps on the fly is going to kill your performance. >> >> Redesign the content instead to be dynamic or use a scripting language >> like velocity that doesn't need compiling for the particular template in >> question. >> >> ~mck >>