• 大小: 815KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-05-29
  • 语言: Java
  • 标签: 源代码  

资源简介

图书馆管理系统javaEE加tomcat加mysql

资源截图

代码片段和文件信息

package com;

import java.io.IOException;

import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;

public class CharacterEncodingFilter implements Filter {

protected String encoding = null;// 定义编码格式变量
protected FilterConfig filterConfig = null;// 定义过滤器配置对象

public void init(FilterConfig filterConfig) throws ServletException {
this.filterConfig = filterConfig; // 初始化过滤器配置对象
this.encoding = filterConfig.getInitParameter(“encoding“);// 获取配置文件中指定的编码格式
}

// 过滤器的接口方法,用于执行过滤业务
public void doFilter(ServletRequest request ServletResponse response
FilterChain chain) throws IOException ServletException {
if (encoding != null) {
request.setCharacterEncoding(encoding); // 设置请求的编码
response.setContentType(“text/html; charset=“ + encoding);// 设置应答对象的内容类型(包括编码格式)
}
chain.doFilter(request response); // 传递给下一个过滤器
}

public void destroy() {
this.encoding = null;
this.filterConfig = null;
}
}

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

     文件        834  2014-05-25 17:42  LibraryManage\.classpath

     文件       1046  2014-05-25 17:42  LibraryManage\.project

     文件        503  2014-05-25 17:42  LibraryManage\.settings\.jsdtscope

     文件        364  2014-05-25 17:42  LibraryManage\.settings\org.eclipse.jdt.core.prefs

     文件        493  2014-05-25 17:42  LibraryManage\.settings\org.eclipse.wst.common.component

     文件        345  2014-05-25 17:42  LibraryManage\.settings\org.eclipse.wst.common.project.facet.core.xml

     文件         49  2014-05-25 17:42  LibraryManage\.settings\org.eclipse.wst.jsdt.ui.superType.container

     文件          6  2014-05-25 17:42  LibraryManage\.settings\org.eclipse.wst.jsdt.ui.superType.name

     文件       6397  2014-05-29 12:52  LibraryManage\build\classes\com\action\Book.class

     文件       4104  2014-05-29 12:52  LibraryManage\build\classes\com\action\BookCase.class

     文件       4316  2014-05-29 12:52  LibraryManage\build\classes\com\action\BookType.class

     文件       6338  2014-05-29 12:52  LibraryManage\build\classes\com\action\Borrow.class

     文件       2784  2014-05-29 12:52  LibraryManage\build\classes\com\action\Library.class

     文件       7074  2014-05-29 12:52  LibraryManage\build\classes\com\action\Manager.class

     文件       2561  2014-05-29 12:52  LibraryManage\build\classes\com\action\Parameter.class

     文件       6085  2014-05-29 12:52  LibraryManage\build\classes\com\action\Reader.class

     文件       4429  2014-05-29 12:52  LibraryManage\build\classes\com\action\ReaderType.class

     文件        792  2014-05-29 12:52  LibraryManage\build\classes\com\actionForm\BookCaseForm.class

     文件       3733  2014-05-29 12:52  LibraryManage\build\classes\com\actionForm\BookForm.class

     文件        999  2014-05-29 12:52  LibraryManage\build\classes\com\actionForm\BookTypeForm.class

     文件       4938  2014-05-29 12:52  LibraryManage\build\classes\com\actionForm\BorrowForm.class

     文件       2132  2014-05-29 12:52  LibraryManage\build\classes\com\actionForm\LibraryForm.class

     文件       2075  2014-05-29 12:52  LibraryManage\build\classes\com\actionForm\ManagerForm.class

     文件        938  2014-05-29 12:52  LibraryManage\build\classes\com\actionForm\ParameterForm.class

     文件        738  2014-05-29 12:52  LibraryManage\build\classes\com\actionForm\PublishingForm.class

     文件       3465  2014-05-29 12:52  LibraryManage\build\classes\com\actionForm\ReaderForm.class

     文件        759  2014-05-29 12:52  LibraryManage\build\classes\com\actionForm\ReaderloginForm.class

     文件       1003  2014-05-29 12:52  LibraryManage\build\classes\com\actionForm\ReaderTypeForm.class

     文件       1730  2014-05-29 12:52  LibraryManage\build\classes\com\CharacterEncodingFilter.class

     文件        171  2014-05-25 18:03  LibraryManage\build\classes\com\connDB.properties

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

评论

共有 条评论