• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Please Help this Argument solve

 
Ranch Hand
Posts: 473
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 473
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 473
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 473
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you all...



Maki Jav
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic