基本的JSP中调用Ajax与Servlet进行数据交互
首先创建jsp页面中 然后在页面中写入js代码!<%String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%> ">