What are JSP custom tags?
JSP tag extensions (informally known as custom tags) are reusable components that encapsulate functionality for use for page authors. For example, you might have small pieces of recurring logic within your JSP-based web application. In the past, such functionality would be written using scriptlets small pieces of Java code embedded into the page. While this works and it achieves the desired result, embedding Java code can lead to maintainability problems in the future, especially if a copy and paste style of reuse has been adopted. In addition to this, embedding Java code within JSP pages makes the job of web designers (the people that are responsible for the look and feel) more difficult since they have to battle with source code that they may not understand. Custom tags are a great way for wrapping up common and recurring functionality and reusing it throughout the pages of web applications. This additionally increases the maintainability and readability of the pages. Further informa