Dev

Monday 11 January 2016

Tag libraries, Namespaces

Meaning of  Tag Libraries: 

In a Web application, a common design goal is to separate the display code from business logic. Java tag libraries are one solution to this problem. Tag libraries allow you to isolate business logic from the display code by creating a Tag class (which performs the business logic) and including an HTML-like tag in your JSP page. When the Web server encounters the tag within your JSP page, the Web server will call methods within the corresponding Java Tag class to produce the required HTML content.



Namespaces
Advantages
  • It helps us avoid real name clashes with other XML vocabularies.
  • Moreover, namespaces may be used, if XML documents will be distributed to others, when name collisions may really become an issue.

Disadvantages
  • Namespaces, increases the size of XML documents.
  • With namespaces, we need to be extra careful while writing applications (all our programming expressions, querying & creating the XML nodes must be namespace aware). This namespace-awareness overhead (effort to create, and maintain) should be incurred, only if an application requires it (i.e, if management of name collisions isreally needed).



1 comment:

  1. If you're trying to lose pounds then you certainly need to get on this totally brand new personalized keto plan.

    To create this keto diet, certified nutritionists, personal trainers, and chefs have united to develop keto meal plans that are productive, convenient, economically-efficient, and delightful.

    Since their launch in January 2019, hundreds of people have already transformed their body and health with the benefits a smart keto plan can give.

    Speaking of benefits: in this link, you'll discover eight scientifically-tested ones offered by the keto plan.

    ReplyDelete