码迷,mamicode.com
首页 > Web开发 > 详细

jsp模板配置

时间:2017-05-12 18:47:26      阅读:185      评论:0      收藏:0      [点我收藏+]

标签:java   type   oct   request   lang   template   jsp   html   rpo   

<%--
Created by IntelliJ IDEA.
User: ${USER}
Date: ${DATE}
Time: ${TIME}
To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme
() + "://" + request.getServerName() + ":" + request.getServerPort
() + path + "/";
%>
<!DOCTYPE html>
<html>
<head>
<base href="<%=basePath%>"/>
<meta charset="utf-8">
<title>#[[$Title$]]#</title>
</head>
<body>
#[[$END$]]#
</body>
</html>

jsp模板配置

标签:java   type   oct   request   lang   template   jsp   html   rpo   

原文地址:http://www.cnblogs.com/BobXie85/p/6846574.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!