Re: Is it possible to programmatically compile jsp files?

2020-03-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jonathan, On 3/25/20 09:51, Jonathan Yom-Tov wrote: > I think I phrased my question incorrectly. What I want to do is to > cache the HTML resulting from the JSPs evaluation so I can serve > the cached result. The reason is that I'm working on an app

Re: Is it possible to programmatically compile jsp files?

2020-03-25 Thread Olaf Kock
On 25.03.20 15:19, Jonathan Yom-Tov wrote: > Sounds good. What would be the best way of evaluating the result so I can > cache it? Buffer the output (e.g. by providing a buffered stream for the response) I'm not sure if this means that you'll need to wrap the response object, of if you could ju

Re: Is it possible to programmatically compile jsp files?

2020-03-25 Thread Jonathan Yom-Tov
Sounds good. What would be the best way of evaluating the result so I can cache it? On Wed, Mar 25, 2020 at 4:03 PM Olaf Kock wrote: > > On 25.03.20 14:51, Jonathan Yom-Tov wrote: > > I think I phrased my question incorrectly. What I want to do is to cache > > the HTML resulting from the JSPs ev

Re: Is it possible to programmatically compile jsp files?

2020-03-25 Thread Olaf Kock
On 25.03.20 14:51, Jonathan Yom-Tov wrote: > I think I phrased my question incorrectly. What I want to do is to cache > the HTML resulting from the JSPs evaluation so I can serve the cached > result. The reason is that I'm working on an application which makes a lot > of requests per page. This m

Re: Is it possible to programmatically compile jsp files?

2020-03-25 Thread Jonathan Yom-Tov
I think I phrased my question incorrectly. What I want to do is to cache the HTML resulting from the JSPs evaluation so I can serve the cached result. The reason is that I'm working on an application which makes a lot of requests per page. This makes the page very slow. What I want to do is to serv

Re: Is it possible to programmatically compile jsp files?

2020-03-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jonathan, On 3/24/20 10:44, Jonathan Yom-Tov wrote: > I have a set of jsp files. These jsps' compilation result changes > whenever a variable in my cache changes. I want to compile them > whenever that variable changes so they're ready to serve with

Re: Is it possible to programmatically compile jsp files?

2020-03-24 Thread Olaf Kock
On 24.03.20 15:44, Jonathan Yom-Tov wrote: > I have a set of jsp files. These jsps' compilation result changes whenever > a variable in my cache changes. I want to compile them whenever that > variable changes so they're ready to serve without going through the normal > pipeline. Is that possible

Is it possible to programmatically compile jsp files?

2020-03-24 Thread Jonathan Yom-Tov
I have a set of jsp files. These jsps' compilation result changes whenever a variable in my cache changes. I want to compile them whenever that variable changes so they're ready to serve without going through the normal pipeline. Is that possible?