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.
posted 11 years ago
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.