日期:2014-05-16  浏览次数:20425 次

jsp获取上下文

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