在Struts中找不到/WEB-INF/struts-html.tld的标记库描述符 [英] Cannot find the tag library descriptor for /WEB-INF/struts-html.tld in Struts

查看:347
本文介绍了在Struts中找不到/WEB-INF/struts-html.tld的标记库描述符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Struts框架的新手,在开发一个简单的Struts 2应用程序时,出现以下错误:

I am new to the Struts framework and while developing a simple Struts 2 application I'm getting the following error:

Cannot find the tag library descriptor for /WEB-INF/struts-html.tld

如何解决此错误?

推荐答案

struts-html.tld是Struts 1标签的TLD.

struts-html.tld is a TLD for Struts 1 tags.

Struts 2使用单个TLD struts-tags.tld,它在struts2-core-2.x.x.jar中.

Struts 2 uses a single TLD, struts-tags.tld, and it's in the struts2-core-2.x.x.jar.

您可以声明如下:

<%@ taglib prefix="s" uri="/struts-tags" %>

还有其他顶级域名,例如struts-dojo-tags(在2.1中已弃用),struts-jquery-tags等...,但从主要的顶级域名开始,浏览Struts2,然后最终尝试使用扩展名".

There are other TLDs like struts-dojo-tags (deprecated in 2.1), struts-jquery-tags, etc... but start with the main one, take a tour of Struts2 and then eventually try to use the "extensions".

这篇关于在Struts中找不到/WEB-INF/struts-html.tld的标记库描述符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆