Could not load the FreeMarker template named 'select'

   眼下项目使用struts2, 所以页面中就使用到了struts2的标签,可是今天在做新的功能的时候突然出现 “Could not load the FreeMarker template named 'select'” 这种错误。

看错误信息是找不到struts2  的select 标签,可是其它页面也都用到了select。也没有出现错误。最后发现问题出在了action中。我在action中定义了一个实体变量,起名为theme,

最后将该变量名称改掉就好了。 因为时间关系没有找到根本原因。自己推測应该是theme 变量名称与struts标签中的冲突导致的。

原文地址:https://www.cnblogs.com/liguangsunls/p/6921559.html