当前位置: 代码迷 >> J2EE >> 救命. Struts1和Jsp相关的一个错误 麻烦解答。
  详细解决方案

救命. Struts1和Jsp相关的一个错误 麻烦解答。

热度:476   发布时间:2016-04-22 02:44:21.0
救命..! Struts1和Jsp相关的一个异常 麻烦解答。。
org.apache.jasper.JasperException: An exception occurred processing JSP page /SelfProjectExpert.jsp at line 83

80: <td colspan="3" align="center" height="300"><textarea rows="40" name="content" cols="90"><%=content%></textarea></td></tr></table>
81: <table bgcolor="#FFFFFF" align="center"width="800" cellspacing="0" border="2" >
82: <tr> <td width="20%" height="30" >实验可行性:</td>
83: <td width="30%" height= "30"><html:text property="efeasible" size="20"></html:text></td>
84: <td width="20%" height="30">预计工作量:</td>
85: <td width="30%" height="30" ><html:text property="elabor" size="20"></html:text></td></tr>
86: <tr><td height="30">经费估计:</td><td><html:text property="egrant" size="20"></html:text></td>


rootcause:

javax.servlet.ServletException: javax.servlet.jsp.JspException: Cannot find bean: "org.apache.struts.taglib.html.BEAN" in any scope
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:852)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)
org.apache.jsp.SelfProjectExpert_jsp._jspService(SelfProjectExpert_jsp.java:268)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
com.sdut.dao.hibernate.CloseSessionFilter.doFilter(CloseSessionFilter.java:23)

rootcause:

javax.servlet.jsp.JspException: Cannot find bean: "org.apache.struts.taglib.html.BEAN" in any scope
org.apache.struts.taglib.TagUtils.lookup(TagUtils.java:935)
org.apache.struts.taglib.html.BaseFieldTag.prepareValue(BaseFieldTag.java:121)
org.apache.struts.taglib.html.BaseFieldTag.renderInputElement(BaseFieldTag.java:102)
org.apache.struts.taglib.html.BaseFieldTag.doStartTag(BaseFieldTag.java:81)
org.apache.jsp.SelfProjectExpert_jsp._jspx_meth_html_005ftext_005f0(SelfProjectExpert_jsp.java:357)
org.apache.jsp.SelfProjectExpert_jsp._jspService(SelfProjectExpert_jsp.java:234)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
com.sdut.dao.hibernate.CloseSessionFilter.doFilter(CloseSessionFilter.java:23)



为什么出现这个错误呢? 我页面中有
<%@ 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"%>
呀..










------解决方案--------------------
http://topic.csdn.net/u/20110614/16/a61e30b7-a364-4665-925d-e00b4e5792c5.html
看看这个
------解决方案--------------------
  相关解决方案