Win a copy of Mesos in Action this week in the Cloud/Virtualizaton 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