我正在通過處理下載文件的jQuery調用一個JSP頁面。jquery ajax調用jsp頁面輸入undefined
$("#download").click(function(e){
$.get("download.jsp", {filename:"file.txt"},doUpdate());
});
和我doUpdate()是
function doUpdate(response){
console.log('done with jsp ' + response);
}
反應是不確定的
我知道JSP頁面,因爲工作,如果我硬編碼的文件名的頁面正確執行。
String filename = request.getParameter("filename");
我是否正確做的事情:
在JSP我用得到的文件名?
謝謝你,這是問題 – 2012-04-25 14:33:56