Written by The Jahia Team
 
Developers
   Estimated reading time:

A tag file is a source file that contains a fragment of JSP code that is reusable as a custom tag.

Answer

Tag files can be convenient but there are limitations when updating/reloading modules (in such case one needs to restart each node of the cluster, possibly with a rolling restart).

Thus, it's better to convert the tag file into a Java class (see Programming Simple Tag Handlers)

Related links