This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Please Help this Argument solve" Watch "Please Help this Argument solve" New topic
Author

Please Help this Argument solve

Maki Jav
Ranch Hand

Joined: May 09, 2002
Posts: 435
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
Marshal

Joined: Jan 10, 2002
Posts: 60774
    
  65

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] [Bear's FrontMan] [About Bear] [Books by Bear]
Maki Jav
Ranch Hand

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

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

Thanks,

Maki Jav
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

JSTL is a specification for a set of standard tags.
The spec can be downloaded here:
http://jcp.org/aboutJava/communityprocess/final/jsr052/

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:
http://jakarta.apache.org/taglibs/doc/standard-doc/intro.html


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: 435
Sorry my friend said that JSTL came along with J2EE1.4



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

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: 435
Thank you all...



Maki Jav
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Please Help this Argument solve
 
Similar Threads
custom tag attribute items cannot be runtime expression
Using JSTL forEach with a custom tag
Passing ArrayList to JSP custom Tag?
I18N in J2EE Application.
Display tags and Jsp Scriptlet