当前位置: 代码迷 >> Java Web开发 >> 急死了,求指教,望高手帮小弟我解决上吧!万分感谢
  详细解决方案

急死了,求指教,望高手帮小弟我解决上吧!万分感谢

热度:6727   发布时间:2013-02-25 21:06:01.0
急死了,求指教,望高手帮我解决下吧!万分感谢!
报的异常如下,我是用struts 整合hibernate写的一个小程序:
exception 

org.apache.jasper.JasperException: An exception occurred processing JSP page /demo.jsp at line 12

9:  <body>
10:  <html:form action="/demo.do?mm=addOne" method="post">
11:  <html:text property="pet.name"></html:text>
12:  <html:text property="pet.saveDate"></html:text><br/>
13:  <html:submit value="娣诲姞"></html:submit>
14:  </html:form>
15: 


Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:515)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:408)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1085)
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:398)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:241)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)


root cause 

javax.servlet.ServletExceptionjavax.servlet.jsp.JspException: Exception thrown by getter for property: "pet.saveDate" of bean: "org.apache.struts.taglib.BEAN"
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:855)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:784)
org.apache.jsp.demo_jsp._jspService(demo_jsp.java:162)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:384)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1085)
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:398)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:241)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)


root cause 

javax.servlet.jsp.JspException: Exception thrown by getter for property: "pet.saveDate" of bean: "org.apache.struts.taglib.BEAN"
org.apache.struts.taglib.TagUtils.lookup(TagUtils.java:969)
org.apache.struts.taglib.BaseFieldTag.prepareValue(BaseFieldTag.java:121)
org.apache.struts.taglib.BaseFieldTag.renderInputElement(BaseFieldTag.java:102)
org.apache.struts.taglib.BaseFieldTag.doStartTag(BaseFieldTag.java:81)
org.apache.jsp.demo_jsp._jspx_meth_html_005ftext_005f1(demo_jsp.java:240)
org.apache.jsp.demo_jsp._jspx_meth_html_005fform_005f0(demo_jsp.java:190)
org.apache.jsp.demo_jsp._jspService(demo_jsp.java:85)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
  相关解决方案