【问题标题】:eclipse : Can not find the tag library descriptor for "/struts-tags"eclipse:找不到“/struts-tags”的标签库描述符
【发布时间】:2014-09-29 01:33:33
【问题描述】:

我正在按照

中给出的步骤进行操作

http://www.tutorialspoint.com/struts_2/struts_quick_guide.htm

对于示例 struts 2 应用程序

但我收到以下错误消息: Can not find the tag library descriptor for "/struts-tags

我遵循了几个帮助:

  1. Error - Can not find the tag library descriptor for "/struts-tags"
  2. Cannot find the tag library descriptor for /WEB-INF/struts-html.tld in Struts

错误仍然存​​在.. 我该怎么办? 谢谢

【问题讨论】:

标签: java eclipse struts2 struts taglib


【解决方案1】:

如果struts2-core-[VERSION].jar 未标记为导出依赖项,则会生成此消息。

要纠正这个问题:

Project Properties > Java Build Path > Order and Export

然后将 struts2-core-[VERSION].jar 标记为导出依赖项(或者,如果通过 Ivy 包含,请确保将 Ivy 库标记为导出依赖项)。

【讨论】:

    【解决方案2】:

    您是否已将 struts2-core-.jar 添加到项目的库中?清理项目。错误会消失。

    【讨论】:

      猜你喜欢
      • 2011-05-02
      • 2012-09-02
      • 1970-01-01
      • 2012-07-05
      • 2011-05-12
      • 1970-01-01
      • 2017-12-11
      • 2016-11-10
      • 1970-01-01
      相关资源
      最近更新 更多