String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
一般放在jsp头部的代码,用于绝对路径。
时间: 2025-01-06 23:53:32
String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
一般放在jsp头部的代码,用于绝对路径。