迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
说明源码来自 为了自己和小伙伴使用方便而提交到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" %> 交流群如梦技术: 捐助共勉![]() ![]() ![]() ![]() ![]() License( The MIT License ) ![]() |
请发表评论