Could not load the FreeMarker template named 'select'

来源:互联网 发布:c语言打印糖果图形 编辑:程序博客网 时间:2024/06/08 11:15

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

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

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

原文地址:http://blog.csdn.net/ypb137154098/article/details/42122977

0 0
原创粉丝点击