action中的写法:
public ActionForward fileIsExsit(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) {}
页面中js的写法:
//验证文件是否存在
function valFile(url){
$.post(url,{参数李彪},function(result){
alert(result);
});
}
原文地址:http://blog.csdn.net/menghuannvxia/article/details/39958961