Why you should care
JSP tags are also useful as they encapsulate reusable functionality on JSP pages. They provide a great way for the logic behind common and recurring tasks to be wrapped up in an easy – to – use package.
Beans and tags help in encapsulating code as that helps in code readability, maintainability, efficiency and bug prevention.
JavaBeans and JSP Tags are useful as they are less risky to use and more productive in the long run. They are designed to help the code be more readable, maintainable and efficient.
How we detect
This code insight shows that javabeans and tags are good-general purpose objects so that the code is more readable and maintainable. When a jsp file uses lot of java code, these codes should be externalized and not embedded. They are used through javaBeans or tag libs afterwards.
About CAST and Highlight’s Code Insights
Over the last 25 years, CAST has leveraged unique knowledge on software quality measurement by analyzing thousands of applications and billions of lines of code. Based on this experience and community standards on programming best practices, Highlight implements hundreds of code insights across 15+ technologies to calculate health factors of a software.