jsp模板

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_27026603/article/details/84966254
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%
    String path = request.getContextPath();
    String basepath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";

%>
<html>
<head>
<base href="<%=basepath %>" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Insert title here</title>
</head>
<body>

</body>
</html>

猜你喜欢

转载自blog.csdn.net/qq_27026603/article/details/84966254
jsp
今日推荐