默认的index.jsp里的参数解释
建立一个web项目TestMyEclipse:
(1).String path = request.getContextPath(); //拿到的是TestMyEclipse 即是新建项目时url访问的路径 一般跟项目名一样
(2).String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; //http://127.0.0.1:8080/TestMyEclipse
(3). //连接的实际地址为 http://127.0.0.1:8080/TestMyEclipse/aaa.html