Static resources should always be contained using the JSP include directive. This way, the inclusion is performed just once during the translation phase. Do note that you should always supply a relative URL for the file attribute. Although you can also contain static resources using the action, this is not advisable as the inclusion is then performed for each and every request.