日期:2014-05-16 浏览次数:20564 次
$(document).ready(function(){ $("#toPagebtn").click(function(){ var page = $("#toPage").val(); alert(page); $.post('employeesFindByPageNumber', { app: 'toPage' , currentPage: page },function(){ window.location.href ="pages/sys/employees.jsp"; }); });
<% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; %> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML> <HEAD> <base href ="<%=basePath %>">
window.location="pages/sys/employees.jsp";
------解决方案--------------------
你的路径没拼对吧
pages/sys/pages/sys/employees.jsp
pages/sys出现了两次,都改成相对根目录/的url试试