我写的jsp在tomcat中怎么无法显示?
---logon.jsp-----
<%@page pageEncoding= "utf-8 " contentType= "text/html; charset=utf-8 " %>
<%@taglib uri= "/WEB-INF/struts-bean.tld " prefix= "bean " %>
<%@taglib uri= "/WEB-INF/struts-html.tld " prefix= "html " %>
<%@taglib uri= "/WEB-INF/struts-logic.tld " prefix= "logic " %>
<title> <bean:message key= "hello.jsp.title "/> </title>
< <html:html>
<html:errors/>
<body>
<html:form action= "/logon.do ">
<center>
<table>
<tr>
<td> <bean:message key= "prompt.username " /> </td>
<td> <html:text property= "userName " size= "25 " maxlength= "25 " /> </td>
</tr>
<tr>
<td> <bean:message key= "prompt.password " /> </td>
<td> <html:text property= "password " size= "25 " maxlength= "25 " /> </td>
</tr>
<tr>
<td> <html:submit property= "submit ">
<bean:message key= "button.insert " />
</html:submit> </td>
<td> <html:reset>
<bean:message key= "button.reset " />
</html:reset> </td>
</tr>
</table>
</center>
</html:form>
</body>
</html:html>
---tomcat的异常------
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Cannot retrieve definition for form bean LogonForm on action /logon.do
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
org.apache.jsp.logon_jsp._jspService(logon_jsp.java:98)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause
javax.servlet.jsp.JspException: Cannot retrieve definition for form bean LogonForm on action /logon.do
org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:731)
org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:419)
org.apache.jsp.logon_jsp._jspx_meth_html_form_0(logon_jsp.java:145)
org.apache.jsp.logon_jsp._jspService(logon_jsp.java:88)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
[解决办法]
struts-config.xml中的action-mappings是怎么定义的?
我的异常网推荐解决方案:The server encountered an internal error () that prevented it from fulfilling this request.,http://www.myexception.cn/java-web/317.html