Use Static Content Where Possible
A JavaServer Page has a good mix of static content and dynamic content. Obviously, the dynamic content is not something that you can cache, and you encounter some performance hit proportional to the amount of dynamic data on that JSP. Thus, maximizing the amount of static content in a JSP is an important performance aspect.
The jspInit() method can be used to load static data and cache it. The jspInit() method is called only once in the life cycle of the JSP. However, you should remember to release all static data in the jspDestroy() method.