郁闷很久的问题,关于struts,求救
我用教程上的sayhello.jsp这个文件,代码如下:
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Say Hello</title>
</head>
<body>
<h3>Say "Hello" to: </h3>
<s:form action="HelloWorld">
Name: <s:textfield name="name" />
<s:submit />
</s:form>
</body>
</html>
提示如下错误:
org.apache.jasper.JasperException: /SayHello.jsp(10,8) Unable to load tag handler class "org.apache.struts2.views.jsp.ui.FormTag" for tag "s:form"
请在是不是我加载struts2是有什么错误呢?还是其它原因?
------解决方案--------------------
你把下面5个包保留其余的去掉
struts2-core-2.0.11.1.jar
xwork-2.0.4.jar
commons-logging-1.0.4.jar
freemarker-2.3.8.jar
ognl-2.6.11.jar