servelet 2.4 +eclipse3.6+struts2.3.16:Can not find the tag library descriptor for "/struts- tags" 2

Struts 2.0的标志库(Tag Library)(1) 对Struts 1.x与Struts 2.0的标志库(Tag Library)作比较。 立即下载
 

servelet 2.4 +eclipse3.6+struts2.3.16:Can not find the tag library descriptor for "/struts- tags"

  430人阅读  评论(0)  收藏  举报

错误提示:Can not find the tag library descriptor for "/struts- tags"

首先,很多例子总都会说,在jsp中要包括

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>

以上三个都是struts1的tag,

在structs2中,用一个单独的tld,“struts-tag.tld”, 存放在struts2-core-2.x.x.jar中。

只要在jsp中,加入以下代码就可以了

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

然后再web.xml中:

 <jsp-config>

 <taglib>

    <taglib-uri>/struts-tags</taglib-uri>

    <taglib-location>/WEB-INF/lib/struts2-core-2.3.16.jar</taglib-location>

 </taglib>

  </jsp-config>

一定要加<jsp-config>,这是和以往的版本不一样的地方,好像servelet2.3之前都不用加,

最后将struts2-core-2.3.16.jar放入你的项目的/WEB-INF/lib中

struts2-core-2.3.31.jar   一、漏洞简介     Apache Struts是美国阿帕奇(Apache)软件基金会负责维护的一个开源项目,是一套用于创建企业级Java Web应用的开源MVC框架,主要提供两个版本框架产品:Struts 1和Struts 2。     Apache Struts 2.3.5 - 2.3.31版本及2.5 - 2.5.10版本存在远程代码执行漏洞(CNNVD-201703-15 2,CVE-2017-5638)。该漏洞与Apache Struts2 (S2-045)远程代码执行漏洞原理基本相同,均是由于上传功能的异常处理函数没有正确处理用户输入的错误信息,导致远程攻击者可通过发送恶意的数据包,利用该漏洞在受影响服务器上执行任意命令。      二、漏洞危害     攻击者可通过发送恶意构造的HTTP数据包利用该漏洞,在受影响服务器上执行系统命令,进一步可完全控制该服务器,造成拒绝服务、数据泄露、网站造篡改等影响。由于该漏洞利用无需任何前置条件(如开启dmi,debug等功能)以及启用任何插件,因此漏洞危害较为严重。     三、修复措施     目前,Apache官方已针对该漏洞发布安全公告,并且漏洞利用代码已被公布在互联网上,请受影响用户及时检查是否受该漏洞影响。另外,已通过升级方式修复了Apache Struts2 (S2-045)远程代码执行漏洞的用户,不在该漏洞影响的范围内。     【自查方式】     用户可查看web目录下/WEB-INF/lib/目录下的struts-core.x.x.jar文件,如果这个版本在Struts2.3.5 到 Struts2.3.31 以及 Struts2.5 到 Struts2.5.10之间则存在漏洞。     【升级修复】     受影响用户可升级版本至Apache Struts 2.3.32 或 Apache Struts 2.5.10.1以消除漏洞影响。     官方公告: https://cwiki.apache.org/confluence/display/WW/S2-046 https://cwiki.apache.org/confluence/display/WW/S2-046 立即下载

相关推荐

Can not find the tag library descriptor for "http://java.sun.com/jsp/jstl/core

有的时候在开发jsp时,需要使用jstl时,在jsp上面引用jstl却出现错误:Can not find the tag library descriptor for "http://java.sun.com/jsp/jstl/core,这是由于缺少两个jar包导致的。

Can not find the tag library descriptor for "/struts-tags"

1、struts.xml 没有正确放置,将struts.xml 放到src目录下,redeploy 2、没有正确导入struts库,把struts2相关的几个lib放在你(tomcat中)工程的WEB-INF/lib下面就可以了 3、%@taglib prefix="s" uri="/struts-tags"%> 有特殊字符 ,删掉重写 4.或者在这个下面找

myn624177675的博客 555

电子技术设计——16×16点阵汉字显示设计

同时,设计还应注重提升显示品质,以保证汉字的稳定展示和观感舒适。本设计的目的是构建一个能够准确在LED点阵上展示汉字的系统,并允许用户通过输入设备来选择所需的汉字,我们将验证设计方案的实际操作性和效果,以确保其满足设计目标。在LED点阵显示和汉字信息处理技术的结合下,研究者们着手研究如何在LED点阵上有效地显示汉字,并提出了一系列显示算法和优化策略,旨在实现清晰且易于阅读的汉字显示效果。首先,你需要准备16×16的LED点阵面板,通常这些点阵是8×8点阵的两倍,因此可以由两个8×8的点阵组合而成。

weixin_68094467的博客 1535

can not find the tag library descriptor for "/struts-tags"

问题描述: 在jsp页面中需要使用struts的标签,如:<s:if></s:if><s:else></s:else> 添加如下一行内容 <%@ taglib prefix="s" uri="/struts-tags"%> 提示存在错误,具体错误内容如下图所示: 解决方案: 本项目为maven项目,在pom.xml...

我爱编程持之以恒 2718

【邻接表存图模板】vector邻接表、数组邻接表、链式前向星

一、目录 一、目录 二、前言 三、邻接表“详解” (一)边的信息 (二)几种邻接表的实现方法“详解” 1.数组邻接表 代码 2.vector邻接表 代码 vector邻接表还有一种魔性写法: 3.链式前向星 代码 四、总结 二、前言 本来之前自己太弱了,一直只会用邻接矩阵,后来发现邻接表才是主流... 参考&特别鸣谢: https://www.cnblog...

十里寒塘路♣烟花一半醒 3123

Python通用编程规范-09 安全编程规范

1.9 安全编程规范 1.9.1 异常行为 1.9.1.1 禁止抑制或者忽略已检查异常 【说明】: 编码人员常常会通过一个空的或者无意义的catch块来抑制捕获的已检查异常。每一个catch块都应该确保程序只会在继续有效的情况下才会继续运行下去。因此,catch块必须要么从异常情况中恢复,要么重新抛出适合当前catch块上下文的另一个异常以允许最邻近的外层try-catch语句块来进行恢复工作。异常会打断应用原本预期的控制流程。例如,try块中位于异常发生点之后的任何表达式和语句都不会被执行。因此,异常必须

zhao12501的博客 2877

Cannot find the tag library descriptor for /struts-tags问题

解决办法: 1、struts.xml 没有正确放置,将struts.xml 放到src目录下,redeploy 2、没有正确导入struts库,把struts2相关的几个lib放在你(tomcat中)工程的WEB-INF/lib下面就可以了 3、 有特殊字符 ,删掉重写(^_^) ...

wuyunmin的专栏 342

【存储原理】IO超时处理 块层block-scsi层之间

【存储原理】IO超时处理 块层block-scsi层之间

sinat_37817094的博客 1033

struts报错Can not find the tag library descriptor for "struts-tags"

原来的语句: 一直报错:Can not find the tag library descriptor for "struts-tags" 改成: 就不再报错了

浣花溪边 3600

网络变更:APIC 节点替换

Fabric Name,Controller ID,TEP Address Pool 等信息必须相同;如果故障设备是 APIC1 还需要重新配置管理密码。此过程可能需要 10 分钟左右,在此期间目标 APIC 可能在 Available/Unavailable 状态翻滚。APIC 获取 TEP 地址后,进入 fully-fit。通过 CLI 以及配置的密码登录目标 APIC。

m0_54931486的博客 326

机器学习的低代码与无代码平台:便捷入门之路

机器学习领域正涌现出大量低代码和无代码平台,使非技术人员也能轻松应用AI技术。低代码平台(如PyCaret、H2O AutoML)需少量编程但灵活性强,而无代码工具(如Google Cloud AutoML、Teachable Machine)则完全无需编程基础。这些平台覆盖图像识别、文本处理、业务预测等多种场景,适合快速部署简单项目。但专业人士仍需注意,这些工具无法替代复杂场景下的定制化开发。随着技术进步,低门槛AI工具正在改变各行业的创新方式。

2501_90323865的博客 158

遇到struts报错Can not find the tag library descriptor for "/struts-tags"

struts报错Can not find the tag library descriptor for “/struts-tags” 如果写的&amp;lt;%@ taglib uri=“struts-tags” prefix=“s” %&amp;gt;,可以改成&amp;lt;%@ taglib uri=&quot;/struts-tags&quot; prefix=“s” %&amp;gt; 更改之后还是报错Can not find the t...

qinguanjian_CSDN的博客 2385

Arcgis栅格裁剪批处理工具

Arcgis栅格裁剪批处理工具

yilvyangguang520的博客 2181

servelet 2.4 +eclipse3.6+struts2.3.16:Can not find the tag library descriptor for "/struts- tags"

错误提示:Can not find the tag library descriptor for "/struts- tags" 首先,很多例子总都会说,在jsp中要包括 以上三个都是struts1的tag, 在structs2中,用一个单独的tld,“struts-tag.tld”, 存放在struts2-core-2.x.x.jar中

u013559730的专栏 2922

【HFSS】仿真目录

Author: JiJi\textrm{Author: JiJi}Author: JiJi Created Time: 2026.04.27\textrm{Created Time: 2026.04.27}Created Time: 2026.04.27 Modified Time: 2026.04.27\textrm{Modified Time: 2026.04.27}Modified Time: 2026.04.27如果大家觉得有用,就点个赞吧,在阅读过程中存在任何困惑,可在下方评论区留言~

u011699626的博客 319

数学建模模型总结

这是本人在两年内准备参加数学建模竞赛搜集到的模型资料,已经经过了本人的筛选和整理,希望能够对准备参加数学建模竞赛的学弟学妹们提供一些帮助!

Can not find the tag library descriptor for "/struts-tags"`

今天碰到这个问题苦恼半天,各种百度各种解决不了,最后一大神告知:检查是否有struts-tags.tld文件。 1、struts.xml需要放在src下如果已经改变路径,这是你需要解压任何一个struts-core-(任何一个版本).jar包里边找到WEB-INF下边的struts-tags.tld然后放到相应的位置即可。 2、看看你的jar包是否已经完全导入。 3、确定你没有把敲错。

覆水难收 2万+

Data-Structures-and-Algorithm-Analysis-in-Java.pdf

作者: Weiss, Mark A. 出版社: Addison Wesley Data Structures and Algorithm Analysis in Java is an “advanced algorithms” book that fits between traditional CS2 and Algorithms Analysis courses. In the old ACM Curriculum Guidelines, this course was known as CS7. This text is for readers who want to learn good programming and algorithm analysis skills simultaneously so that they can develop such programs with the maximum amo...

Can not find the tag library descriptor for "/struts-tags"问题

解决办法: 1、struts.xml位置没有放正确,将struts.xml 放到src目录下,redeploy 2、没有正确导入struts库,把struts2相关的几个lib放在工程的WEB-INF/lib下面就可以了 3、 有特殊字符 ,删掉重写(^_^)

博观而约取,厚积而薄发 1914

假人有限元模型

假人模型,车辆碰撞假人有限元模型,适合做乘员安全的研究者利用

蓝牙模块HM-10手册

蓝牙模块HM-10手册,该手册对蓝牙模块HM-10进行了详细的介绍和使用方法以及一些AT指令。

struts.xml报这个错误:Can not find the tag library descriptor for "/struts-tags"`

错误:Can not find the tag library descriptor for “/struts-tags”` 解决办法: 1.有时候<%@taglib prefix=“s” uri="/struts-tags"%>没有任何错误,也依然会报错,解决办法是对文中修改重新报错(例如:删除空格,重新添加空格保存即可),即可。 2.struts.xml需要放在src下如果已经改变...

u013131716的博客 495

Can not find the tag library descriptor for "/struts-tags

有时候这句话会出现错误     &lt;%@ taglib prefix="s" uri="/struts-tags"%&gt;,Can not find the tag library descriptor for "/struts-tags,是因为项目少了两个包jstl.jar  和 standard.jar,只要再随便新建一个项目,J2EE选择1.4那个,下面那个JSTL Support勾上...

iteye_6102的博客 152

Struts2---->Cannot find the tag library descriptor for /struts-tags

以前的的项目,导入,引用struts2标签的jsp页面 &lt;%@ taglib prefix="s" uri="/struts-tags" %&gt; 报错Cannot find the tag library descriptor for /struts-tags struts-tags 是struts2标签库默认的URI, 解决方法: 1、修改下jsp文件(哪怕打一个空格,再删掉...

weixin_33860722的博客 426

Can not find the tag library descriptor for "http://java.sun.com/jsp/jstl/

有些时候, 会报错,错误提示为: Can not find the tag library descriptor for "http://Java.sun.com/jsp/jstl/core" 解决此问题的方法为以下: 在WEB-INF/lib里加入 jstl.jar standard.jar两个包即可解决这个问题

sinat_35608637的博客 790

Can not find the tag library descriptor for “http://java.sun.com/jsp/jstl/core”

dependencies> dependency> groupId>javax.servletgroupId> artifactId>servlet-apiartifactId> version>2.5version> dependency> dependency> groupId>javax.servlet.

arkblue的专栏 1150
上一篇: jsp怎样实现动态表格
下一篇: java.lang.ClassNotFoundException: com.opensymphony.xwork2.util.ValueStack
javaPie
博客等级 码龄16年 1171粉丝 43原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值
⌂ 换网址