aspose file tools*
The moose likes JSP and the fly likes Advantages and Disadvantages of JSTL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Advantages and Disadvantages of JSTL" Watch "Advantages and Disadvantages of JSTL" New topic
Author

Advantages and Disadvantages of JSTL

Ko Ko Naing
Ranch Hand

Joined: Jun 08, 2002
Posts: 3178
To all serious JSP developers,
Here we got the link of the advantages of JSTL..
http://www.informit.com/isapi/product_id~{27F6F199-F5FD-474C-AC7F-B3FC2C1F57B6}/element_id~{2A4D41A5-E2E3-4C97-A7D7-0E60524438C2}/st~{94C03A97-1188-4875-8A06-17743BA224B7}/session_id~{9B2B7DCF-753A-44C5-87BD-983B137FAFEC}/content/articlex.asp

and disadvantages of JSTL..
http://www.informit.com/isapi/product_id~{27F6F199-F5FD-474C-AC7F-B3FC2C1F57B6}/element_id~{D9961D8C-EF50-448D-90C8-7FB465D36DE6}/st~{94C03A97-1188-4875-8A06-17743BA224B7}/session_id~{9B2B7DCF-753A-44C5-87BD-983B137FAFEC}/content/articlex.asp


Co-author of SCMAD Exam Guide, Author of JMADPlus
SCJP1.2, CCNA, SCWCD1.4, SCBCD1.3, SCMAD1.0, SCJA1.0, SCJP6.0
sunitha reghu
Ranch Hand

Joined: Dec 12, 2002
Posts: 937
Thanks for the informative links. So implementing JSTL makes app slow?
Ko Ko Naing
Ranch Hand

Joined: Jun 08, 2002
Posts: 3178
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

Joined: Feb 27, 2002
Posts: 8919

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.


Groovy
Ko Ko Naing
Ranch Hand

Joined: Jun 08, 2002
Posts: 3178
I guess so... May be assumed as just theorectical...
Sue Spielman
Author
Ranch Hand

Joined: Apr 21, 2003
Posts: 56
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.


President/Consulting Engineer<br />Switchback Software LLC<br /><a href="http://www.switchbacksoftware.com" target="_blank" rel="nofollow">www.switchbacksoftware.com</a>
vasu maj
Ranch Hand

Joined: Jul 12, 2001
Posts: 395
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


What a wonderful world!
Ko Ko Naing
Ranch Hand

Joined: Jun 08, 2002
Posts: 3178
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...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Advantages and Disadvantages of JSTL