• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Advantages and Disadvantages of JSTL

 
Ranch Hand
Posts: 937
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the informative links. So implementing JSTL makes app slow?
 
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
Yes, according to the article, it is because more server-processing power is required to run JSTL-based sites than pure JSP scriptlet sites.
 
Ranch Hand
Posts: 8944
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 Ko Naing:
Yes, according to the article, it is because more server-processing power is required to run JSTL-based sites than pure JSP scriptlet sites.


I guess the difference is negligible.
 
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
I guess so... May be assumed as just theorectical...
 
Author
Posts: 56
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It's important to keep a perspective here. So I'll give you mine on the points of that article concerning the disadvatages.
Disadvantage: Overhead
I highly disagree here. There are ways (like precompiling JSPs) to mitigate this. As other implementations of the JSTL make their way into app servers they will be highly optimized, so I think this point is not really valid
Disadvantage: Not as Extensive as JSP Scriptlet
I also disagree. I have seen the most horrendous code in JSPs all in the name of Scriplets! 99% of the time the scriplet code is doing some business logic (not presentation logic) and just added a maintenance headache into the application. You have access (very easy access) to objects in the JSTL that make it easier and cleaner to use.
Disadvantage: May Seem Burdensome for Experienced Programmers
I also disagree here. If you are working with JSPs, you are probably also using custom actions. If you are using custom actions, I know I'd rather learn a full-featured set of actions once, This is usually the case because a different developer wrote yet another iteration tag. I think your productivity goes way up after you've spent a very short time with the JSTL.
 
Ranch Hand
Posts: 396
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I agree with Sue there on the misuse of scriptlets. I have seen a very neat JSP the other day using web method technique( part of the struts architecture). There are really small JSPs which are used only for display and there are tags where the java code goes. The JSP is what a JSP should look like. Unfortunately most of the JSPs that we come across have millions of lines of java code in the scriptles just because scriptlets can contain java code.
Vasu
 
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
I just would like to share the research that I have found out on the net...
If there is no disadvantage on using JSTL, then let's use it!!!
I am also eager to learn that technology deeply...
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic