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

what is taglib ?

Saurabh Agrawal
Ranch Hand

Joined: Oct 07, 2003
Posts: 244
Helloo friends ,

I am learning JSP these days .. can anyone tell me what is the signifance of taglibs in jsp and in what context are they used ??
Hoping to hear from you soon ,

Success is not doing extraordinary things but doing ordinary things extraordinarily well.
Ali Gohar
Ranch Hand

Joined: Mar 18, 2004
Posts: 572
Taglibs are actually used to make our custom tags for use in JSPs. These have a great advantage of reuseability.Suppose i have made a tag for iteration. i have written the code only once in my tag class but i can use it anywhere in any jsp after including that. So this way i have saved a lot of code. And it become a reuseable component in my different projects.
Secondly it seperates the presentation and logic. i.e. our JSP become cleaner and all the code goes to tag classes. And doing that obviously an easy to manage.
I agree. Here's the link:
subject: what is taglib ?
It's not a secret anymore!