0
我已经在我的JavaScript以下电话:如何处理Spring MVC(3.0)应用程序中的Ajax.Request调用?
new Ajax.Request('/orders/check_first_last/A15Z2W2',
{asynchronous:true, evalScripts:true,
parameters:{first:$('input_initial').value,
last:$('input_final').value,
order_quantity:$('input_quantity').value}});
我需要什么做的就是Spring MVC的(3.0)来处理呢?
辉煌!如果我需要通过替换某些HTML来将响应写回页面,我可以从checkFirstLast()方法这样做吗?哦,等等,是你的意思@ResponseBody? – Bowe 2010-09-04 18:14:37
@Bowe看到我的更新。 – Bozho 2010-09-04 18:19:25
@Bozho:那么调用write()方法会不会产生一个全新的HTML页面,还是允许我替换现有页面上的一个元素而不刷新页面?我希望通过在checkFirstLast()方法中执行的计算更新页面上的文本元素,但不刷新页面。 – Bowe 2010-09-04 18:24:51