IntelliJ 12 中未识别 Struts2 标签库

iCr*_*rus 2 struts2 intellij-idea

我一直在尝试一切让 IntelliJ 允许使用 Struts2 taglib。然而它却一直在抱怨<%@ taglib prefix="s" uri="/struts-tags"%>。IDE 中显示的错误是:

无法解析 uri /struts-tags

截图

我从头开始建立了一个新项目,并包含了 struts2 方面(将 struts.xml 文件添加到 src/META-INF 并将 struts2-core jar 添加到 myApp/lib)。

我的项目设置有什么问题吗?

感谢任何帮助,因为我已经坚持了一天了!

环境:IntelliJ IDEA 12.1.6

iCr*_*rus 5

该问题似乎是由于 IntelliJ 缓存造成的,使缓存无效并重新启动后问题就消失了。

重新索引该项目就成功了。

File > Invalidate Cache
Run Code Online (Sandbox Code Playgroud)