日期:2014-05-17  浏览次数:20861 次

struts1.2错误500的问题。。。
HTML code
type Exception report

message 

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

exception 

org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspException: Exception creating bean of class  mystruts.actionform.ProductForm: {1}
    org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:534)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:442)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:391)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:722)


root cause 

javax.servlet.ServletException: javax.servlet.jsp.JspException: Exception creating bean of class  mystruts.actionform.ProductForm: {1}
    org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:911)
    org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:840)
    org.apache.jsp.newProduct_jsp._jspService(newProduct_jsp.java:92)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:419)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:391)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:722)


root cause 

javax.servlet.jsp.JspException: Exception creating bean of class  mystruts.actionform.ProductForm: {1}
    org.apache.struts.taglib.html.FormTag.initFormBean(FormTag.java:487)
    org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:457)
    org.apache.jsp.newProduct_jsp._jspx_meth_html_005fform_005f0(newProduct_jsp.java:109)
    org.apache.jsp.newProduct_jsp._jspService(newProduct_jsp.java:82)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:419)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:391)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:722)





主页面
  <html:link forward="newProduct">录入产品信息</html:link> 
  </td> 
  <td> 
  <html:link forward="searchProduct">查询产品信息</html:link> 

录入页面

<html:form action="saveProduct"> 

配置

<form-beans>
  <form-bean name="saveProductForm" type=" mystruts.actionform.ProductForm" />
  <form-bean name="searchProductForm" type="mystruts.actionform.ProductForm" />
</form-beans>
  <global-exceptions />
 <global-forwards>
  <forward name="newProduct" path="