aspose file tools*
The moose likes JSP and the fly likes JSTL Performance Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "JSTL Performance" Watch "JSTL Performance" New topic
Author

JSTL Performance

harold neiper
Greenhorn

Joined: Jun 12, 2002
Posts: 18
We are about 30% finished implementing JSTL fmt tablig for internationalization in one of our applications.
Even though I have read plenty of commentary on performance of JSTL I would like to here from others who have implemented the same and what there experience was as it relates to performance.
Also, one of the question brought up recently to me relating to this is how this compares, performance wise, to using jsp includes.
I already understand the benefit of using JSTL over other methods my only concern at the moment is performance.
TIA
Harold
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Originally posted by harold neiper:
I already understand the benefit of using JSTL over other methods my only concern at the moment is performance.

I'd guess the overhead in the servlet code generated by using JSTL/taglibs is somewhat irrelevant (some event-oriented method calls) when the "normal" JSP code already produces tons of out.println("\r") calls.
However, if anyone has hard facts, I'd be interested to hear about them also.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
harold neiper
Greenhorn

Joined: Jun 12, 2002
Posts: 18
Hi David,
Do you have any insight regarding performance gains/hits with using JSTL, specifically the fmt library vs. using jsp includes?
David Geary
Author
Ranch Hand

Joined: Apr 23, 2003
Posts: 45
Originally posted by harold neiper:
Hi David,
Do you have any insight regarding performance gains/hits with using JSTL, specifically the fmt library vs. using jsp includes?

First, remember that JSTL is a specification, not a product (unlike Swing, for example). The JSTL reference implementation is fairly slow, but speed was never meant to be its forte. Resin--one of my favorite servlet containers, see www.caucho.com--has a blazingly fast implementation of JSTL.
If you're going to internationalize your apps--and you should if only to encapsulate text presented to the user--using JSTL implementations should give you about the same performance as using Java i18n class like MessageFormat and the like. The JSTL tags, in all likliehood are going to delegate to those classes. (who wants to rewrite all that stuff!)


David Geary Sabreware, Inc<br /><a href="http://www.corejsf.com" target="_blank" rel="nofollow">http://www.corejsf.com</a><br /> <br />Author: Graphic Java Series, Advanced JavaServerPages, Core JSTL and Core JavaServer Faces
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSTL Performance