• 大小: 696KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-06-04
  • 语言: Java
  • 标签: java  pet  petclinic  jsp  

资源简介

jsp javabean css sqlserver 做的宠物管理系统 还有图片

资源截图

代码片段和文件信息

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.io.IOException;
import javax.servlet.FilterChain;
import javax.servlet.Filter;
import javax.servlet.FilterConfig;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;

public class AuthFilter implements Filter {
    protected FilterConfig filterConfig;
    public void init(FilterConfig config) throws ServletException {
        this.filterConfig = config;
    }
    public void destroy() {
        this.filterConfig = null;
    }
    public void doFilter(final ServletRequest request final ServletResponse response
                         FilterChain chain) throws IOException
            ServletException {
        boolean valid = false;
        HttpServletRequest hreq = (HttpServletRequest)request;
        HttpServletResponse hres = (HttpServletResponse) response;
        HttpSession session = hreq.getSession();
        try {
        if((session != null)&&(session.getAttribute(“username“)!=null))
            valid = true;
        if(valid)
            chain.doFilter(requestresponse);
        else
            request.getRequestDispatcher(“/login.jsp“).forward(requestresponse);
        }
        catch (Exception e){
            e.printStackTrace();
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      20264  2008-06-22 19:31  petclinic\cal2.js

     文件        889  2008-06-22 19:31  petclinic\cal_conf2.js

     文件    1048576  2008-06-30 21:23  petclinic\db\petclinic.mdf

     文件     516096  2008-06-30 21:23  petclinic\db\petclinic_log.LDF

     文件       1361  2008-06-30 21:14  petclinic\footer.htm

     文件       1881  2008-06-30 20:26  petclinic\fund.css

     文件        938  2008-06-29 20:47  petclinic\header.jsp

     文件       1003  2008-06-29 20:43  petclinic\headerpet.jsp

     文件       1003  2008-06-29 21:14  petclinic\headervet.jsp

     文件       3587  2008-06-30 21:15  petclinic\login.jsp

     文件       2376  2008-06-29 21:20  petclinic\newpetowner.jsp

     文件       2090  2008-06-29 21:20  petclinic\ownerupdate.jsp

     文件       3162  2008-06-29 21:20  petclinic\petnew.jsp

     文件       3060  2008-06-29 21:20  petclinic\petnewvisit.jsp

     文件       2063  2008-06-29 21:58  petclinic\petsearch.jsp

     文件       1341  2008-06-29 21:20  petclinic\petsearch_name.jsp

     文件       2882  2008-06-29 21:20  petclinic\petupdate.jsp

     文件       2354  2008-06-29 21:20  petclinic\petview_name.jsp

     文件       1939  2008-06-29 21:20  petclinic\petvisithistory.jsp

     文件       4692  2008-06-30 20:42  petclinic\pic\1.jpg

     文件       5453  2008-06-30 20:58  petclinic\pic\10.jpg

     文件       5450  2008-06-30 20:58  petclinic\pic\11.jpg

     文件       3516  2008-06-30 20:42  petclinic\pic\12.jpg

     文件       3545  2008-06-30 20:42  petclinic\pic\13.jpg

     文件       4348  2008-06-30 21:12  petclinic\pic\14.jpg

     文件       3393  2008-06-30 21:12  petclinic\pic\15.jpg

     文件       3398  2008-06-30 20:42  petclinic\pic\2.jpg

     文件       4354  2008-06-30 20:43  petclinic\pic\3.jpg

     文件       4193  2008-06-30 20:44  petclinic\pic\4.jpg

     文件       6551  2008-06-30 20:44  petclinic\pic\5.jpg

............此处省略84个文件信息

评论

共有 条评论