This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

what is taglib ?

 
Saurabh Agrawal
Ranch Hand
Posts: 244
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ali Gohar
Ranch Hand
Posts: 572
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic