tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bernhard Slominski <bernhard.slomin...@zooplus.com>
Subject AW: JSP pre-compile and Apache
Date Fri, 17 Jun 2005 07:47:08 GMT
Well there is one big advantage when using precompiled JSPs:
You're sure that all JSPs are compilable, so you don't get any compile
errors on your live site.
That gives your application more stability.

Bernhard

> -----Urspr√ľngliche Nachricht-----
> Von: Charl Gerber [mailto:charlgerber@yahoo.com]
> Gesendet: Freitag, 17. Juni 2005 08:07
> An: Tomcat Users List
> Betreff: Re: JSP pre-compile and Apache
> 
> 
> I have the precompiled JSP's working with Apache now.
> Thanks.
> 
> Apart from the "first-time-hit" compilation penalty on
> a normal jsp (as apposed to a precompiled one), why
> would you choose one option above the other?
> 
> Standard jsp is easier to do updates if you work in an
> unpacked war setup - you just change the file and it
> is updated. Precompiled you have to acctually
> precompile the file.
> 
> But how about performance and other issues? I guess it
> depends on your application, but is there somewhere a
> good checklist to determine when to choose the one
> option over the other?
> 
> 
> 
> --- "Terence M. Bandoian" <terence@tmbsw.com> wrote:
> 
> > Have you granted the site accessClassInPackage
> > runtime permission?
> > 
> > -Terence M. Bandoian
> >  terence@tmbsw.com
> > 
> > > I used to precompile my JSP's (which worked great
> > and
> > > was a big time saver in testing), but since
> > running
> > > Tomcat 4.1.31 together with Apache, all sorts of
> > weird
> > > errors occurred. I remember reading somewhere that
> > > Apache expected the actual jsp file, not the
> > compiled
> > > version. So I reverted back to *not* precompiling
> > > JSP's and everything worked as expected.
> > >
> > > Question now, obviously there is a
> > first-time-compile
> > > penalty per jsp, but once compiled, should
> > performance
> > > be the same? How about the overhead to check if
> > the
> > > .jsp file indeed matches the compiled version?
> > >
> > > Has someone managed to get precompiled JSP's
> > running
> > > in combination with Apache?
> > 
> > 
> >
> ---------------------------------------------------------------------
> > 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
> 

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


Mime
View raw message