1 <?xml version="1.0" encoding="UTF-8"?>
3 Licensed to the Apache Software Foundation (ASF) under one or more
4 contributor license agreements. See the NOTICE file distributed with
5 this work for additional information regarding copyright ownership.
6 The ASF licenses this file to You under the Apache License, Version 2.0
7 (the "License"); you may not use this file except in compliance with
8 the License. You may obtain a copy of the License at
10 http://www.apache.org/licenses/LICENSE-2.0
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
18 <web-app xmlns="http://java.sun.com/xml/ns/javaee"
19 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
20 xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
23 <description> Servlet and JSP Examples. </description>
24 <display-name>Servlet and JSP Examples</display-name>
26 <!-- ===================== CORE DEFINITIONS ======================= -->
27 <!-- 拦截所有后缀为.y的url,判断是否登录 -->
29 <filter-name>LoginFilter</filter-name>
30 <filter-class>org.gaixie.jibu.security.filter.LoginFilter</filter-class>
33 <filter-name>LoginFilter</filter-name>
34 <url-pattern>*.y</url-pattern>
38 <servlet-name>LoginServlet</servlet-name>
39 <servlet-class>org.gaixie.jibu.security.servlet.LoginServlet</servlet-class>
42 <servlet-name>MainServlet</servlet-name>
43 <servlet-class>org.gaixie.jibu.security.servlet.MainServlet</servlet-class>
44 <!-- 用于显示主窗口的title -->
46 <param-name>main.title</param-name>
47 <param-value>jibu web application</param-value>
49 <!-- 以逗号分隔的js文件名,会被一次加载 -->
51 <param-name>js.names</param-name>
52 <param-value>jibu-core-all.js</param-value>
57 <servlet-name>LoginServlet</servlet-name>
58 <url-pattern>/LoginServlet.x</url-pattern>
61 <servlet-name>MainServlet</servlet-name>
62 <url-pattern>/MainServlet.y</url-pattern>