com.book.struts.action.LoginAction.setCustomerService(customerService);
解决方案 »
- 简单的注册页面,发现数据提示保存成功,可是在\WebRoot\WEB-INF\classes下的user.xml里找不到!高手来!
- 一个关于<html>下的<Map>问题
- 请赐教
- hibernate lazy请教!!!!
- 几道笔试题?
- Picoconntainer的几个问题
- struts2 文件下载后怎么删除
- sql2000数据库的某字段类型为text,怎样在javabean里怎样读取?
- 有关JAVA合作
- 请问,个人在学javaEE+Android,java的基础学完了,最好在学什么呢?
- eclipse3.1+weblogic8.1开发EJB问题,请高手求救....
- 对struts+hibernate的一点不解,再线等/1高人指点下1谢谢!!!
return customerService;
}
public void setICustomerService(ICustomerService customerService){
this.customerService= customerService;
}
public ActionForward execute(
没错啊。
bean 属性是指com.book.struts.action.LoginAction里具体的对象 ICustomerService customerService;
现在提倡对接口编程,就是最好用功能类的抽象类来作为name
bean就是bean了,一般是spring里面的bean,如果在你定义的配置文件中的bean
就可以用local关键字了浅薄的理解,请参考,错误,请指正
this.customerService= customerService;
}把你这个setICustomerService 里面的"I"去掉 Spring的注入是根据set方法来注入的,不是根据对象名来注入的
this.customerService= customerService;
}
你把I去掉试试