首页 > 代码库 > jsp 加入basePath

jsp 加入basePath

<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%><%String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><base href="http://www.mamicode.com/"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title></title></head><body></body></html>