The class handler associated with TagLib contains the code that will be executed when TagLib is used. In other words, a tag class handler must implement the javax.servlet.jsp. tagext. Key benefits Components, which are enhanced objects that allow you to focus development on business logic instead of worrying about encoding, storage, etc. EJBs can be reused. EJBs play a vital role in J2EE architecture because they introduce the notion of components.
Components are objects that integrate functionalities by default.
They represent business objects. XML is a language that can be used to describe objects and their characteristics, without knowing their presentation beforehand. XML describes the content without knowing the form. On the contrary, HTML is a language used to define content presentation. HTML does not recognize data types, but lays out text.