GithubHelp home page GithubHelp logo

jsp-layout's Introduction

说明

源码来自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 )

jsp-layout's People

Contributors

chunmenglu avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.