Jakarta ee 即使在添加struts jar之后,我也会收到错误“org.apache.jasper.jaspereException:处理JSP页面时发生异常”

Jakarta ee 即使在添加struts jar之后,我也会收到错误“org.apache.jasper.jaspereException:处理JSP页面时发生异常”,jakarta-ee,struts,Jakarta Ee,Struts,我正在尝试从UI获取用户名和密码输入,并使用ApacheTomcat6.0以bean类的形式对其进行验证 <%@taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html"%> <%@taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %> <html> <head>

我正在尝试从UI获取用户名和密码输入,并使用ApacheTomcat6.0以bean类的形式对其进行验证

<%@taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html"%>
<%@taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
        <title>Login page | Hello World Struts application in Eclipse</title>
    </head>
    <body>
    <h1>Login</h1>
    <html:form action="login">
         <bean:message key="label.username" />
         <html:text property="userName"></html:text>
         <html:errors property="userName" />
         <br/>
         <bean:message key="label.password"/>
        <html:password property="password"></html:password>
         <html:errors property="password"/>
        <html:submit/>
        <html:reset/>
    </html:form>
    </body>
</html>

您正在使用Struts 1.1标记

要使用Struts 1.2,1.3标记:

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
可能重复: 参考:

要使用Struts 2标记:
参考:

请提供完整的堆栈跟踪。您正在使用哪个web或应用程序服务器?请提供堆栈跟踪,因为不可能不看到它就说出来。不相关,但您为什么在使用标记体和不使用标记体之间任意选择,例如,为什么不以相同的方式关闭所有标记?一致性有时是有用的。