SpringSide的页面管理_html/css_WEB-ITnose

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

SpringSide的开发框架,我们可以给所有的页面配置一个公共的footer和header的,如果想让某个页面单独显示,而不需要footer和header,那么你可以在WEB-INF下面的views下面的decorators.xml文件中进行配置,具体如下:

<?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
这里我让登录页面login.xml不显示footer和header,只需要在excludes中加入一行配置 /login,那么url地址栏中以login结尾的登录页面就被排除在外了,最终效果如下:




原本的页面效果如下,是带有公共的footer和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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!