This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Advantages and Disadvantages of JSTL

 
sunitha reghu
Ranch Hand
Posts: 937
  • Mark post as helpful
  • send pies
  • 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
  • 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.
 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
I guess so... May be assumed as just theorectical...
 
Sue Spielman
Author
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • 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.
 
vasu maj
Ranch Hand
Posts: 396
  • Mark post as helpful
  • send pies
  • 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
  • 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...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic