What is the difference between custom JSP tags and beans?Custom JSP tag is a user defined tag describing the way of its attributes and its body are interpreted, and then the tags are grouped into collections called tag libraries that can be used in any number of JSP files. Both custom tags and beans encapsulate the complex behavior into simple and accessible forms. There are several differences:
1. Custom tags can manipulate JSP content but beans cannot.
2. Complex operations can be reduced to a much simpler form with custom tags than with beans.
3. Custom tags require more work to set up than beans do.
4. Custom tags usually defined in relatively self-contained behavior, whereas beans are often defined in one servlet and used in a different servlet or JSP page.
5. Custom tags are available only in JSP 1.1 and later versions, but beans are available in all JSP 1.x versions.
What is difference between custom JSP tags and beans?A custom tag is defined by the author. These tags are defined and then grouped into a collections called tag libraries. These can be used in any number of JSP files. The following are the differences between custom tags and beans:
1. JSP content can be manipulated by custom tags, where as beans cannot.
2. The complexity of operations can be reduced significantly that with that of beans.
3. Implementing a custom tag is a tedious task than beans.
4. A custom tag is usually contains relatively self-contained behavior, where as beans are defined in servlet and used in different servlets or JSPs.