正确代码:
window.location.href = “<%=request.getContextPath()%>/dept/delete?deptno=”+dno;
或
window.location.href = “<%=request.getContextPath()%>”+“/dept/delete?deptno=”+dno;
错误代码:
window.location.href = <%=request.getContextPath()%>+“/dept/delete?deptno=”+dno;