日期:2014-05-20  浏览次数:20914 次

<html:file property="file" />一加页面就出错
HTTP Status 500 - 

--------------------------------------------

type Exception report

message 

description The server encountered an internal error () that prevented it from fulfilling this request.

exception 

org.apache.jasper.JasperException: Exception in JSP: /form/email.jsp:37

34: file :
35: </td>
36: <td>
37: <html:file property="file" />
38: </td>
39: </tr>
40: <tr>


Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:467)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:371)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
com.mypack.filter.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:37)


root cause 

javax.servlet.ServletException: No getter method for property file of bean org.apache.struts.taglib.html.BEAN
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:846)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779)
org.apache.jsp.form.email_jsp._jspService(email_jsp.java:85)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
com.mypack.filter.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:37)


root cause 

javax.servlet.jsp.JspException: No getter method for property file of bean org.apache.struts.taglib.html.BEAN
org.apache.struts.taglib.TagUtils.lookup(TagUtils.java:973)
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.form.email_jsp._jspx_meth_html_005ffile_005f0(email_jsp.java:222)
org.apache.jsp.form.email_jsp._jspx_meth_html_005fform_005f0(email_jsp.java:137)
org.apache.jsp.form.email_jsp._jspService(email_jsp.java:74)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
com.mypack.filter.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:37)


note The full stack trace of the root cause is available in the Apache Tomcat/5.5.23 logs.


--------------------------------------------

Apache Tomcat/5.5.23

------解决方案--------------------
错误信息:
No getter method for property file of bean org.apache.struts.taglib.html.BEAN 
form里的属性 file没有set get 方法或者方法名和属性不匹配,
你自己看看,找不到就把你的form贴出来
------解决方案--------------------
No getter method for property file of bean org.apache.struts.taglib.html.BEAN