在struts.xml中添加下面的句子,让spring来管理action
[html]
下面看看applicationContext.xml中的action配置
[html]
class="org.arthur.lr.system.RegistAction">
然后看看怎么把这个在struts.xml中应用这个bean
[html]
如果要用ajax技术发送到某个action,其中url也写成配置文件中的action名字即可
比如$.post(“regist”, {json: name}, callBack, "json");
作者:chunqiuwei