• 大小: 5.87KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-01-28
  • 语言: Java
  • 标签: jsp  过滤器  servlet  注解  

资源简介


资源截图

代码片段和文件信息

package com.demo.servlet;

import java.io.IOException;
import java.util.HashMap;
import javax.servlet.DispatcherType;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.annotation.WebFilter;
import javax.servlet.annotation.WebInitParam;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 登录过滤器
 * @author Administrator
 */
@WebFilter(filterName=“LoginFilter“
urlPatterns={“/*“}
initParams={
@WebInitParam(name=“NotFilterURI“ value=“/login.jsp;/login.fail.jsp;/LoginServlet“)
}
dispatcherTypes={DispatcherType.REQUEST})
public class

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件         922  2016-06-29 13:31  .classpath
     文件         909  2016-06-29 13:30  .project
     目录           0  2016-07-26 06:56  com\
     目录           0  2016-07-26 06:56  com\demo\
     目录           0  2016-07-26 06:56  com\demo\servlet\
     文件        2358  2016-06-29 15:14  com\demo\servlet\LoginFilter.java
     文件        1323  2016-06-29 15:09  com\demo\servlet\LoginServlet.java
     目录           0  2016-07-26 06:56  WebContent\
     文件         615  2016-06-29 15:09  WebContent\index.jsp
     文件         421  2016-06-29 13:54  WebContent\login.fail.jsp
     文件         866  2016-06-29 19:21  WebContent\login.jsp
     文件         364  2016-06-29 13:53  WebContent\login.sucess.jsp
     目录           0  2016-07-26 06:56  WebContent\meta-INF\
     文件          39  2016-06-29 13:30  WebContent\meta-INF\MANIFEST.MF

评论

共有 条评论