SpringSide's page management_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:48:51
Original
1105 people have browsed it

With SpringSide’s development framework, we can configure a common footer and header for all pages. If you want a page to be displayed separately without footer and header, then you can do it under WEB-INF Configure it in the decorators.xml file under views, as follows:

<?xml version="1.0" encoding="UTF-8"?><decorators defaultdir="/WEB-INF/layouts/">	<excludes>		<pattern>/static/*</pattern>		<pattern>/api/*</pattern>		<pattern>/login</pattern>	</excludes>		<decorator name="default" page="default.jsp">		<pattern>/*</pattern>	</decorator></decorators>
Copy after login
Here I let the login page login.xml not display the footer and header, and only need to add a line of configuration in excludes< ;pattern>/login, then the login page ending with login in the URL address bar will be excluded. The final effect is as follows:




The original page effect is as follows, with public footer and header:


Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template