嗨,有人能帮我解决上面提到的错误吗?我使用了一个index.jsp文件
<%@ 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>
<h1>Hello World From Struts2</h1>
<form action="hello">
<label for="name">Please enter your name</label><br/>
<input type="text" name="name"/>
<input type="submit" value="Say Hello"/>
</form>
</body>
</html>在编写完所有类和xml文件之后,我通过tomcat服务器运行了这些类,但得到了如下错误

我是Struts新手,有人能帮我吗?
发布于 2017-06-07 15:39:16
标记库包含在struts-core.jar中,容器会自动发现它。
由于某些原因,web.xml中需要标记库配置,从struts-core.jar META-INF文件夹中提取TLD文件,并向web.xml添加标记库元素。
<!-- ... -->
</welcome-file-list>
<taglib>
<taglib-uri>/s</taglib-uri>
<taglib-location>/WEB-INF/struts-tags.tld</taglib-location>
</taglib>
</web-app>发布于 2017-06-07 15:50:00
试试这些:
https://stackoverflow.com/questions/44406112
复制相似问题