文章列表
用SSH做了几个项目,现在总结一下Struts Action中调用Spring Service的方法,大家有好的实现,请继续补充:
1.老爸操持型
这种类型,即是在BaseAction中提供一个getBean(String beanName)的父类方法,业务Action 在需要Serivce时,调用父类的getBean()得到Object型的Service,再Cast。
e.g.
代码
程序代码:
public class BaseAction extends DispatchAction
{
...
public Object ...
- 2008-08-12 06:49
- 浏览 955
- 评论(0)
A Quick Setup Note:
The code for the document can be found in the extracted Standard Binary Distribution , more specifically at Axis2_HOME/samples/ inside the directories- quickstart, quickstartadb, quickstartaxiom, quickstartjibx and quickstartxmlbeans. (Consider getting it now as it will help you t ...
- 2008-07-30 19:18
- 浏览 1565
- 评论(0)