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

JSTL Basics

Macky Shannon
Greenhorn

Joined: May 30, 2002
Posts: 5
I have just started looking into using taglibs. Is JSTL built-in? Or, are there imports / jar files that need to be set up?
I looked at a couple sample Struts applications and it seems a bit complex for what I am doing. I would like to move some scriptlets out of JSP though.
What is the learning curve of JSTL vs Struts? Any comments.
Macky
Jason Menard
Sheriff

Joined: Nov 09, 2000
Posts: 6450
Comparing Struts to JSTL is imho comparing apples to oranges. Struts is a MVC framework to use in building web based apps, whereas the JSTL simply encapsulates some functionality common to most JSP apps. Used together, you would build your application in a Struts framework, and use JSTL to assist with view logic in your JSPs. Struts also has its own set of taglibs, some of which duplicate functionality found in the JSTL. Here's a pretty good article to help get you started in JSTL.
But to answer your question more directly, since JSTL is only a set of taglibs, there is imho less of a learning curve than there is with Struts (although as I stated the two really shouldn't be compared).
Shawn Bayern
Author
Ranch Hand

Joined: May 06, 2002
Posts: 160
I agree. To add to that, JSTL is analogous not to Struts but to Struts's custom tag libraries. The long-term plan for Struts is for it to simply adopt JSTL's tags and deprecate its custom tags; this meshes nicely with Struts's trend toward focusing on controller operation and not on the details of the view.


Shawn Bayern<br />"JSTL in Action" <a href="http://www.jstlbook.com" target="_blank" rel="nofollow">http://www.jstlbook.com</a>
harold neiper
Greenhorn

Joined: Jun 12, 2002
Posts: 18
We are currently in the process of implementing JSTL for use with all of our web applications that need to be localized.
So far this implementation is working very nicely. The setup is very straight forward just follow the instructions on where to place the taglibs and jars. The learning curve for this portion was negligible.
The only difficulty so far is understanding the differences between the EL and RT based languages and which is best suited for your given circumstances. But as far as the learning curve for JSTL in comparison to Struts(knowing this is not a fair comparison) well, JSTL is by far a smaller.
[ April 22, 2003: Message edited by: harold neiper ]
 
jQuery in Action, 2nd edition
 
subject: JSTL Basics