【发布时间】:2011-05-02 07:57:19
【问题描述】:
我的 jsp 文件收到此错误 - '找不到“/struts-tags”的标签库描述符'
奇怪的是我的应用似乎仍然可以工作。
我正在关注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>
谢谢
【问题讨论】:
-
显示你的JSP的相关代码