This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "what is taglib ?" Watch "what is taglib ?" New topic
Author

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 ,
Saurabh


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: http://aspose.com/file-tools
 
subject: what is taglib ?
 
Similar Threads
How to iterate through c:forEach tag
JSP
EL functions
Intrincic Objects
transaltion unit in jsp