IntelliJ 12中未标识Struts2标记库 [英] Struts2 Tag library not identified in IntelliJ 12
问题描述
我一直在努力使IntelliJ允许使用Struts2 taglib。然而,它继续抱怨<%@ taglib prefix =suri =/ struts-tags%>
。它在IDE中显示的错误是:
I have been trying everything to make IntelliJ allow the use of Struts2 taglib. However it keeps on complaining about <%@ taglib prefix="s" uri="/struts-tags"%>
. The error it shows in the IDE is:
无法解析uri / struts-tags
Cannot resolve the uri /struts-tags
我从头开始设置了一个新项目,其中包括struts2 facet(它将struts.xml文件添加到src / META-INF,将struts2-core jar添加到myApp / lib)。
I have set up a new project from scratch and included the struts2 facet (which added the struts.xml file to src/META-INF and the struts2-core jar to myApp/lib).
我的项目设置有什么问题吗?
Is there anything wrong with my project setup ?
任何帮助都表示赞赏,因为我现在已经坚持了一天!
Any help is appreciated as I have been stuck with this for a day now!
环境:IntelliJ IDEA 12.1.6
推荐答案
这个问题似乎是由于IntelliJ缓存问题而且问题已经消失了使缓存无效并重新启动。
The issue seemed to be due to IntelliJ caching and the problem is gone after invalidating cache and restart.
重新索引项目就行了。
File > Invalidate Cache
这篇关于IntelliJ 12中未标识Struts2标记库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!