浅析如何让Spring 来管理Action的配置方法

2014-11-24 09:01:29 · 作者: · 浏览: 0

在struts.xml中添加下面的句子,让spring来管理action

[html]


下面看看applicationContext.xml中的action配置
[html]
registAction"
class="org.arthur.lr.system.RegistAction">



然后看看怎么把这个在struts.xml中应用这个bean
[html]

regist" class="registAction" >
/success.jsp
/regist.jsp
/regist.jsp

如果要用ajax技术发送到某个action,其中url也写成配置文件中的action名字即可
比如$.post(“regist”, {json: name}, callBack, "json");


作者:chunqiuwei