WebWork提供的使用Ajax的配置及使用太麻烦了,又难以理解。所以本人自己写了一套很简单方法来访问:
1.Action代码:
public String forwordLog(){
log.info("forword to log tab....");
return "forwordLog";
}
public String getLog(){
log.info("forword to getLog....");
String retDoc = "";
try{
if(fileName != null)
retDoc = FileUti ...
hi,有个问题请教一下各位大侠:
类A是ServletContextListener的实现类,在web.xml加入了listener。问题就来了,在A中无法访问
已经注入到spring中的bean B,只能用B b = new B()来访问。
我想原因是:A没有注入spring,所以访问不了spring中的bean。
问:怎么把A注入spring中呢? 谢谢了。
有空的话帮帮忙,这个问题已经困惑我很久了。我的邮箱(MSN): chenrongsen@hotmail.com







评论排行榜