Java Server Page

JSP Projects

JSP Project

adplus-dvertising
Define the "Tag library" in brief.
Previous Home Next

In JavaServer Page( JSP) technology, the action and attribute are element, which able to create and access object of programming language and have potential to change the output stream/ flow. Tag library is important function of JSP page , in which define Tag, its attribute, its body and its interpreted then collection of these tag is called Tag Libraries which can easily used in any number of JSP page/ files.

A custom action is invoked by using a custom tag in a JSP page which having custom method and action. A tag library is a collection of custom tags Tag library is generally used to overcome the problem regarding JavaBeans (jsp:useBean) like-

  • JavaBeans (jsp:useBean) is can't be manipulated the JSP content ,while a custom define Tags able to do so
  • Using JavaBeans in every JSP page provided more complication, while a custom Tag is define once and can used as many JSP page( able to reduce complication from program)
  • A custom Tag required quite a bit more work to set up than do beans.
  • Beans is often define in one JSP/Servlet page and the used in different by calling its property by creating its instance, in case of Tag only TAG URI is pass into page and automatic its all property is call with in that page.

Previous Home Next