哪位强人帮我解答两个问题(Spring和Struts).小弟谢谢了....
1,公司使用Spring来管理bean,得到bean的方式是这样的,总感觉有点不正统,请问Web开发中最常用的得到Bean的方式是什么样子,来段代码..
WebApplicationContext wac = DelegatingActionUtils
.getRequiredWebApplicationContext(servlet, mapping.getModuleConfig());
MyInteraction a = (MyInteraction) wac.getBean("MyInteraction");
a.giveYourName();
2,我写的Struts必须实现execute()方法才能进入,请问如何才能在写任意方法名都能进入?