You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by Alessandro PTQS <al...@ptqs.it> on 2007/09/19 14:06:23 UTC
JSP Compiler
Hi, I'm using Geronimo 1.1 and i want to disable the recompilation of my jsp
every time I restart the application or even every time I restart the
server.
Thanks
Alessandro.
--
View this message in context: http://www.nabble.com/JSP-Compiler-tf4480585s134.html#a12776094
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
Re: JSP Compiler
Posted by Prasad Kashyap <go...@gmail.com>.
Geronimo 1.1 used maven1. So it does not have the jspc-maven-plugin.
We used our own precompile goal in geronimo/etc/maven.xml
http://svn.apache.org/viewvc/geronimo/server/tags/1.1.1/etc/maven.xml?revision=447393&view=markup
For an example of how we did it, look at the
geronimo/applications/welcome/maven.xml
http://svn.apache.org/viewvc/geronimo/server/tags/1.1.1/applications/welcome/maven.xml?revision=447393&view=markup
Cheers
Prasad
On 9/19/07, Paul McMahan <pa...@gmail.com> wrote:
> On Sep 19, 2007, at 8:06 AM, Alessandro PTQS wrote:
>
> > Hi, I'm using Geronimo 1.1 and i want to disable the recompilation
> > of my jsp
> > every time I restart the application or even every time I restart the
> > server.
>
> I would suggest precompiling your jsps. If you build using maven
> then there is a jspc-maven-plugin that can do this for you. I think
> there is also a jspc ant task if you use ant. What these tools
> basically do is generate the java class file for your jsps at build
> time and then insert <servlet> and <servlet-mapping> elements into
> your web.xml so that requests for those jsps are handled by the
> precompiled classes.
>
>
> Best wishes,
> Paul
>
Re: JSP Compiler
Posted by Paul McMahan <pa...@gmail.com>.
On Sep 19, 2007, at 8:06 AM, Alessandro PTQS wrote:
> Hi, I'm using Geronimo 1.1 and i want to disable the recompilation
> of my jsp
> every time I restart the application or even every time I restart the
> server.
I would suggest precompiling your jsps. If you build using maven
then there is a jspc-maven-plugin that can do this for you. I think
there is also a jspc ant task if you use ant. What these tools
basically do is generate the java class file for your jsps at build
time and then insert <servlet> and <servlet-mapping> elements into
your web.xml so that requests for those jsps are handled by the
precompiled classes.
Best wishes,
Paul