jsp 获得url路径

 

String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";

你可能感兴趣的:(jsp 获得url路径)