1
我想從用戶界面輸入用戶名和密碼,並在表單bean class.USing中驗證它apache tomcat 6.0即使在添加struts jar我得到錯誤「org.apache.jasper.JasperException:發生處理JSP頁面的異常」
<%@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>
請提供完整的堆棧跟蹤。你在使用哪個網站或應用程序服務器? – 2014-08-28 07:45:16
apache tomcat 6.0 – user3616360 2014-08-28 09:14:57
請提供堆棧跟蹤,因爲如果沒有看到它就不可能說出來。 – 2014-08-28 11:22:42