creating bean of class InvoiceBlankOutForm: {1}

这种错误也很低级,但是我还是犯错了,哎,这是说前台的property跟后台的对应不上,就会出现javax.servlet.ServletException: Exception creating bean of class InvoiceBlankOutForm: {1} 这种错误拉,对应上就可以了

我之所以对应不上,是因为在前台的property的值首字母给大写了,所以后台就对应不上了,前台的属性名字首字母千万不能大写啊!

错误例子:

前台:
<html:text property="DriverQueryPermitDriverModelInput"/>
后台:
private String DriverQueryPermitDriverModelInput;
public String getDriverQueryPermitDriverModelInput() {
  return driverQueryPermitDriverModelInput;
 }
 public void setDriverQueryPermitDriverModelInput(
   String driverQueryPermitDriverModelInput) {
  this.driverQueryPermitDriverModelInput = driverQueryPermitDriverModelInput;
 }
这样当然就对应不上了
http://heisetoufa.ggblog.com
1群:5302559
2群:5358308
3群:43605976
4群:43605925(