错误 - 找不到“/ struts-tags”的标记库描述符 [英] Error - Can not find the tag library descriptor for "/struts-tags"
本文介绍了错误 - 找不到“/ struts-tags”的标记库描述符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在我的jsp文件上收到此错误 - '无法找到/ struts-tags的标记库描述符'
I'm receiving this error on my jsp file - 'Can not find the tag library descriptor for "/struts-tags"'
奇怪的是我的应用程序似乎仍然有效。
Strange thing is my app still seems to work.
我正在按照教程 - http://struts.apache.org/2.x/docs/using-struts-2-tags.html
I'm following the tutorials at - http://struts.apache.org/2.x/docs/using-struts-2-tags.html
这是代码。
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Hello World!</title>
</head>
<body>
<h2><s:property value="messageStore.message" /></h2>
<p>I've said hello <s:property value="helloCount" /> times!</p>
<p><s:property value="messageStore" /></p>
</body>
</html>
谢谢
推荐答案
您是否已将struts2-core-.jar添加到项目库中?如果您尝试清理项目。
Have you added the struts2-core-.jar to the libraries of the project? If you have try to clean the project.
这篇关于错误 - 找不到“/ struts-tags”的标记库描述符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文