You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Zachi Hazan <Za...@Qlusters.com> on 2005/09/06 16:49:04 UTC

compile precompile jsps at runtime

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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: compile precompile jsps at runtime

Posted by Tim Funk <fu...@joedog.org>.
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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: compile precompile jsps at runtime

Posted by Zachi Hazan <Za...@Qlusters.com>.
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: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: compile precompile jsps at runtime

Posted by Tim Funk <fu...@joedog.org>.
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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org