Besides splitting large JSP code blocks into smaller parts by means of the <cms:include> tag, there is the possibility of encapsulating code redundancies into custom reusable JSP tag files.
If there appear many <cms:container> tags in a template JSP, for example, it may be useful to define all the container related markup in a JSP tag file and then call the <example:container> tag in the template JSP.