9 Star 12 Fork 3

如梦技术 / jsp-layout

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

说明

源码来自rapid-framework中的rapid_jsp_extends

为了自己和小伙伴使用方便而提交到git和maven!

使用说明

###maven

<dependency>
	<groupId>net.dreamlu</groupId>
	<artifactId>jsp-layout</artifactId>
	<version>0.0.2</version>
</dependency>

###_layout.jsp

<%@ page language="java" session="false" contentType="text/html;charset=UTF-8" isELIgnored="false"%>
<%@ page trimDirectiveWhitespaces="true" %>
<%@ taglib prefix="layout" uri="http://www.dreamlu.net/tags/jsp-layout.tld" %>
<%-- 布局 --%>
<!DOCTYPE html>
<html>
<head>
	<%--重写的head --%>
	<layout:block name="head"></layout:block>
</head>
<body>
	<%--主体部分 --%>
	<layout:block name="content"></layout:block>
	<%--脚本部分--%>
	<layout:block name="script"></layout:block>
</body>
</html>

###index.jsp

<%@ page language="java" session="false" contentType="text/html;charset=UTF-8" isELIgnored="false"%>
<%@ page trimDirectiveWhitespaces="true" %>
<%@ taglib prefix="layout" uri="http://www.dreamlu.net/tags/jsp-layout.tld" %>
<%-- 填充head --%>
<layout:override name="head">
    <title>head</title>
</layout:override>
<%-- 填充content --%>
<layout:override name="content">
    content
</layout:override>
<%-- 填充script --%>
<layout:override name="script">
    script
</layout:override>
<%@ include file="_layout.jsp" %>

交流群

如梦技术:237587118

捐助共勉

微信捐助 微信捐助 支付宝捐助 QQ捐助 QQ捐助

License

( The MIT License )

The MIT License (MIT) Copyright (c) 2016 Dreamlu Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

jsp layout 展开 收起
Java
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Java
1
https://gitee.com/596392912/jsp-layout.git
git@gitee.com:596392912/jsp-layout.git
596392912
jsp-layout
jsp-layout
master

搜索帮助