Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Please Help this Argument solve

 
Maki Jav
Ranch Hand
Posts: 446
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Daniel Dalton
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64843
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Maki Jav
Ranch Hand
Posts: 446
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please be more elaborate...

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

Thanks,

Maki Jav
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Maki Jav
Ranch Hand
Posts: 446
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry my friend said that JSTL came along with J2EE1.4



Maki Jav
[ December 04, 2006: Message edited by: Maki Jav ]
 
Muthukrishnan Palanichamy
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 446
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you all...



Maki Jav
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic