compile precompile jsps at runtime

2005-09-06 Thread Zachi Hazan

Hi all,
Is there a way to compile precompiled jsp at runtime?
i.e., I want to precompiled my jsp before deployment, but after they are 
deployed I still want to make changes to the jsps that will take effect 
immediately.
I want to be able to change  jsp and see the changes immediately 
although they are precompiled

Does anyone knows how to do it?


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



Re: compile precompile jsps at runtime

2005-09-06 Thread Tim Funk

Can't with tomcat out of the box.

-Tim

Zachi Hazan wrote:


Hi all,
Is there a way to compile precompiled jsp at runtime?
i.e., I want to precompiled my jsp before deployment, but after they are 
deployed I still want to make changes to the jsps that will take effect 
immediately.
I want to be able to change  jsp and see the changes immediately 
although they are precompiled

Does anyone knows how to do it?



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



Re: compile precompile jsps at runtime

2005-09-06 Thread Zachi Hazan

So, how can I do it with tomcat not out of the box?

Tim Funk wrote:


Can't with tomcat out of the box.

-Tim

Zachi Hazan wrote:


Hi all,
Is there a way to compile precompiled jsp at runtime?
i.e., I want to precompiled my jsp before deployment, but after they 
are deployed I still want to make changes to the jsps that will take 
effect immediately.
I want to be able to change  jsp and see the changes immediately 
although they are precompiled

Does anyone knows how to do it?



-
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]



Re: compile precompile jsps at runtime

2005-09-06 Thread Tim Funk

A lot of custom coding on your own.

You'd need a filter which traps all your precompiled servlet mappings and 
then checks to see of the jsp the file was mapped to has changed. Then you'd 
need to somehow manage compiling the JSP and loading the class file while 
ignoring the existing mapping. In a nutshell ... not pretty.


Or you can have tomcat run in production mode (for the jsp servlet) and all 
the jsp's get compiled in the background when they are changed. But this 
relies on jsps NOT being precompiled.


-Tim

Zachi Hazan wrote:


So, how can I do it with tomcat not out of the box?

Tim Funk wrote:


Can't with tomcat out of the box.

-Tim

Zachi Hazan wrote:


Hi all,
Is there a way to compile precompiled jsp at runtime?
i.e., I want to precompiled my jsp before deployment, but after they 
are deployed I still want to make changes to the jsps that will take 
effect immediately.
I want to be able to change  jsp and see the changes immediately 
although they are precompiled

Does anyone knows how to do it?



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



RE: compile precompile jsps at runtime

2005-09-06 Thread Peter Crowther
 From: Zachi Hazan [mailto:[EMAIL PROTECTED] 
 Subject: Re: compile precompile jsps at runtime
 
 So, how can I do it with tomcat not out of the box?

One approach would be to cheat!  Tomcat compiles the page when the page
is first invoked.  So, you could for example define a special parameter
as part of the query string (such as 'precompile=true') and modify the
code for each page so that if the parameter is found, the page does
nothing.  However, Tomcat has still compiled it.

Then all you need is some kind of script (using cURL or a similar tool)
that fetches each page and adds a '?precompile=true' suffix.  Deploy,
run the script, and all your pages are precompiled.

Low-tech, I agree, and I suspect others on the list will be able to come
up with a better approach.

- Peter

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