1. 程式人生 > >Could not load the FreeMarker template named 'select'

Could not load the FreeMarker template named 'select'

今天 struts2 dsm eem str ng- 問題 lec 其它

眼下項目使用struts2, 所以頁面中就使用到了struts2的標簽,可是今天在做新的功能的時候突然出現 “Could not load the FreeMarker template named ‘select‘” 這種錯誤。

看錯誤信息是找不到struts2 的select 標簽,可是其它頁面也都用到了select。也沒有出現錯誤。最後發現問題出在了action中。我在action中定義了一個實體變量,起名為theme,

最後將該變量名稱改掉就好了。 因為時間關系沒有找到根本原因。自己推測應該是theme 變量名稱與struts標簽中的沖突導致的。

Could not load the FreeMarker template named 'select'