TA的每日心情 | 开心 2021-3-12 23:18 |
---|
签到天数: 2 天 [LV.1]初来乍到
|
[pre]ERRORrg.apache.jasper.JasperException: Cannot find bean under name org.apache.struts.taglib.HTML.BEAN org.apache.jasper.Servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802)[/pre]
root cause
[pre]javax.servlet.ServletException: Cannot find bean under name org.apache.struts.taglib.html.BEAN org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:858) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791) org.apache.jsp.index_jsp._jspService(index_jsp.java:392) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802)[/pre]
root cause
[pre]javax.servlet.jsp.JspException: Cannot find bean under name org.apache.struts.taglib.html.BEAN org.apache.struts.taglib.html.SelectTag.calculateMatchValues(SelectTag.java:240) org.apache.struts.taglib.html.SelectTag.doStartTag(SelectTag.java:200) org.apache.jsp.index_jsp._jspx_meth_html_select_0(index_jsp.java:410) org.apache.jsp.index_jsp._jspService(index_jsp.java:227) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802)[/pre][pre]
[/pre][pre]导致的原因:[/pre][pre]原因1:没有引入标签库
原因2:没有放到特定的标签下,如:<html:select/>必须放到<html:form/> 里边,否则会报错。特别要注意,有些标签与html 的标签不能混用,如<html:select>就不能与<form>混用,否则也会报上边的错误。一定要注意。
|
[/pre]
|
|