Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSTL and EL  RSS feed

 
Ed Carrington
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?
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • 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 ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!