• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

JSTL and EL

 
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
After years of using Tomcat 4.1 I I will be gettingTomcat 5.5 very soon.
I read that EL comes with Tomcat 5.5 but it doesnt include JSTL.
What is the difference between EL and JSTL?
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I read that EL comes with Tomcat 5.5 but it doesnt include JSTL.


Yes, since JSP2.0, EL was taken out from the JSTL specification and became part of the JSP specification, so JSP2.0 containers must support it. Since JSP2.1 (Tomcat6.x), EL even has its own specification.

What is the difference between EL and JSTL?


That may a bit long to explain JSTL is a set of tags which allows you to do things like iterate through collections, set scoped variables... EL is used to read scoped variables, do some elementary operations, and provides a set of implicit object like request, session... JSTL and EL allow you to write JSP without scriptlets.

Don't miss this FAQ, which explains you how to use EL and JSTL.
 
Ed Carrington
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, that explained it very well.
I wonder why JSTL wasnt included with the standard installation of Tomcat.
[ April 02, 2008: Message edited by: Ed Carrington ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic