• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JSTL requirements

 
Ranch Hand
Posts: 398
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to JavaRanch Sue.
To start the discussion can you briefly explain about JSTL and the requirments to use the libraries in JSPs. How did you get motivatd to write the book. How different is it from other books out there?

Thanks,
Vasu
 
Ranch Hand
Posts: 8945
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The only requirement is to put the required jar files in the lib dir.
 
Ranch Hand
Posts: 3178
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You may want to view the following thread which is about the JSTL and its usefulness...
https://coderanch.com/t/280483/JSP/java/JSTL-useful
 
Author
Posts: 56
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Vasu. JSTL is the JSP Standard Tag Library. It's a collection of frequently used actions that make creating JSPs much easier, more readable, and more maintainable. The Expression Language (EL) was first introduced with the JSTL, but the support of it has now been moved to JSP 2.0. It allows for easy access to objects, and a much cleaner way to deal with presentation data. It should help eliminate the need for using Scriplets in your code. Overall, the JSTL is a technology that most any JSP developer will want to become familiar with and use in their development.
You asked what my motivation was for writing the book? If there is a technology that can make a big impact in a developer�s life, I'm usually on it when it comes out. The JSTL was one such technology, so I decided that the practical guide would be a very helpful and useful way to come up to speed very quickly. You'll have to let me know what you think of the book if you get a chance to read it!
Sue
 
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi SUE
Does JSTL make any performance difference?
-----------
Sainudheen
 
vasu maj
Ranch Hand
Posts: 398
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for your reply Sue.
For a minute I thought you were asking someone else to answer the questions while you are busy with your next book... :-)
I have a question about the performance issue of using JSTLs, for that matter any tag libraries.
I have a large JSP which I want to split into smaller maintainable JSPs. The original JSP was not using tag libraries. What will be the performance effect of using JSTL? Are there ways to minimise it?
Thanks,
Vasu
 
Sue Spielman
Author
Posts: 56
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, I am busy on my next book, but never to busy to answer questions .
I feel that the performance issues related to using the JSTL are minimal. If you are adding any code, regardless of what it is, obviously you will have some addition of runtime instructions. However, the additional overhead is not even worth the consideration. Usually there are more pressing issues in an application that can be optimized (such as in business logic) that will get more bang for your buck. What is worth much more is the time spent coding, the amount of debugging required, and the easy of maintenence in your application View files. That is worth more to me and the development teams I work with then 1 ms in saved page execution.
my .02 cents!
Sue
 
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I agree with Sue that there are better places to look for performance improvements, such as the business logic. I also agree that it is well worth taking a small hit on the performance if this makes the development, debugging, and maintenance of the code easier.
Having said that, we did find a significant performance overhead when using JSTL as opposed to scriptlets. This is in JSP pages that are purely concerned with presentation, i.e. there is no business logic on these pages. Because of this, certain parts of our application that need to be highly scalable and performant will be unable to use JSTL for now, while other, less critical parts, can benefit from using JSTL.
The reason is most likely the amount of reflection that JSTL uses, which is still an expensive operation. Hopefully, newer versions of Java / JSP, or even more performant implementations of JSTL will get around these initial problems.
-Mirko
 
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Pradeep Bhat:
The only requirement is to put the required jar files in the lib dir.


Not entirely true - you also need to have a JSP 1.2+ compliant container and you'll need to include <taglib> references in your web.xml file for each set of libraries you reference.
 
Ko Ko Naing
Ranch Hand
Posts: 3178
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
U guys may want to view about the performance discussion of JSTL on this thread
https://coderanch.com/t/283465/JSP/java/Advantages-Disadvantages-JSTL
 
Pradeep bhatt
Ranch Hand
Posts: 8945
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Charles Hasegawa:

Not entirely true - you also need to have a JSP 1.2+ compliant container and you'll need to include <taglib> references in your web.xml file for each set of libraries you reference.



Yes, that is true for any custom tag
 
Charles Hasegawa
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Pradeep Bhat:
Yes, that is true for any custom tag


Err, just to clarify, modifying the web.xml file is true for any custom tag, but having a 1.2 container is not.
 
Ko Ko Naing
Ranch Hand
Posts: 3178
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Charles Hasegawa:

Err, just to clarify, modifying the web.xml file is true for any custom tag, but having a 1.2 container is not.


Just to clarify more... JSP1.2 support only JSTL 1.0... It is not for JSTL 1.1 Isn't it???
Surely JSP 2.0 will support JSTL 1.1
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic