自己搭了一个SSH2框架,发现无法获取Bean
public class BaseAction extends ActionSupport {

ApplicationContext ctx;
protected Object getBean(String name) { 
if (ctx == null) {
ctx = WebApplicationContextUtils
.getRequiredWebApplicationContext(servlet
.getServletContext());
}  
return ctx.getBean(name);

}servlet.getServletContext()  Strus2没有Http协议,以前继承DispactAction 可以获得这个 servlet
.getServletContext()  现在不行了,请问如何更改