我有jsp代码,我在第6行收到错误。
<%@taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<html>
<body>
<center>
<h3>Enter your Login Details</h3>
<html:form action="/loginaction">
Enter user ID:<html:text property="uname" />
<br>
Enter Password:<html:password property="pwd" />
<br>
<html:submit />
<html:reset />
</html:form>
</center>
</body>
</html>
我在eclipse的默认包中编写了java类。 而且.classes没有生成。 有什么问题帮助我......
SEVERE: Servlet.service() for servlet [jsp] in context with path [/webroot_struts] threw exception [javax.servlet.ServletException:
javax.servlet.jsp.JspException: Exception creating bean of class j.LoginActionForm under form name x] with root cause
javax.servlet.jsp.JspException: Exception creating bean of class j.LoginActionForm under form name x
at org.apache.struts.taglib.html.FormTag.initFormBean(FormTag.java:536)
at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:503)
at org.apache.jsp.login_jsp._jspx_meth_html_005fform_005f0(login_jsp.java:117)
at org.apache.jsp.login_jsp._jspService(login_jsp.java:89)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)