File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes Please Help this Argument solve Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Please Help this Argument solve" Watch "Please Help this Argument solve" New topic

Please Help this Argument solve

Maki Jav
Ranch Hand

Joined: May 09, 2002
Posts: 439
Hi to all,

My friend and I have this argument:

I say that the custom tag I have built is a part of JSTL but my friend says that it is not so as JSTL came in JDK 1.4 and later...

Who is correct? Cannot we call the custom tags we use that extends TagSupport etc JSTL?

Maki Jav

Help gets you when you need it!
Daniel Dalton
Ranch Hand

Joined: Mar 20, 2005
Posts: 146
No, JSTL is something very specific - it's the JavaServer Pages Standard Tag Library, so no - while you may well have built a custom tag, it's not part of JSTL.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63841

Originally posted by Maki Jav:
as JSTL came in JDK 1.4 and later...

You're both wrong. Nothing you write can be part of the JSTL, and the JSTL is not part of any JDK.

[Asking smart questions] [About Bear] [Books by Bear]
Maki Jav
Ranch Hand

Joined: May 09, 2002
Posts: 439
Please be more elaborate...

what is JSTL. I know that it is standard lib...
what are its uses?


Maki Jav
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

JSTL is a specification for a set of standard tags.
The spec can be downloaded here:

Before JSTL, companies who wanted to write JSP pages without scriptlets had to either implement and maintain their own set of custom tags for common tasks such as iterating over data structures or use third party frameworks such as Struts. This caused a lot of duplication of effort and caused JSP pages to look very different from project to project which increases the ramp up time for new developers at any given company; even if they already had JSP experience.

JSTL (as its name suggests) standardizes the behavior of the most commonly written tags. Now a company can download and install any spec compliant implementation of the JSTL and use them.
The most popular implementation can be downloaded here:

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Maki Jav
Ranch Hand

Joined: May 09, 2002
Posts: 439
Sorry my friend said that JSTL came along with J2EE1.4

Maki Jav
[ December 04, 2006: Message edited by: Maki Jav ]
Muthukrishnan Palanichamy

Joined: Nov 24, 2006
Posts: 2
JSTL 1.2 is part of the Java EE 5 platform.The JavaServer Pages Standard Tag Library (JSTL) encapsulates as simple tags the core functionality common to many Web applications. JSTL has support for common, structural tasks such as iteration and conditionals, tags for manipulating XML documents, internationalization tags, and SQL tags. It also provides a framework for integrating existing custom tags with JSTL tags.
Maki Jav
Ranch Hand

Joined: May 09, 2002
Posts: 439
Thank you all...

Maki Jav
I agree. Here's the link:
subject: Please Help this Argument solve
It's not a secret anymore!