• 大小: 1.16MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-08-30
  • 语言: 其他
  • 标签: 库存  系统  xml  

资源简介

一个简单的库存管理系统,包括货物入库、货物出库、库存与xml文件相互的导入导出

资源截图

代码片段和文件信息

package com.icss.common.filter;

import javax.servlet.Filter;
import javax.servlet.FilterConfig;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.FilterChain;
import javax.servlet.http.HttpServletRequest;
import org.apache.log4j.Logger;
/**
 * @author zangll
 *
 * @param 
 */

/**
 * 编码过滤.
 */
public class EncodeFilter implements Filter {
    private String encode = “GBK“;

    /**
     * 
     * @uml.property name=“config“
     * @uml.associationEnd multiplicity=“(0 1)“
     */
    private FilterConfig config = null;

    public void init(FilterConfig config) {
      this.config = config;
      this.encode = config.getInitParameter(“encode“);
    }

    public void doFilter(ServletRequest request ServletResponse response FilterChain chain) {
        try{
            request.setCharacterEncoding(this.encode);
            response.setContentType(“text/html;charset=“+encode);
            chain.doFilter(request response);
        }
        catch(Exception e){
            if(!(e instanceof java.net.SocketException)){
                if(request instanceof HttpServletRequest)
                    Logger.getLogger(this.getClass()).error(“error request uri:“+((HttpServletRequest)request).getRequestURI());
              Logger.getLogger(this.getClass()).error(e);
            }
        }
    }
    public void destroy() {
          this.config = null;
          this.encode = null;
      }


}

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

     文件        910  2008-06-18 18:16  goodsMgr\.classpath

     文件         49  2008-05-28 11:08  goodsMgr\.metadata\RGRConfig.xml

     文件        637  2008-06-17 15:07  goodsMgr\.project

     文件       1581  2008-05-28 10:52  goodsMgr\.r1project

     文件        394  2008-05-28 15:23  goodsMgr\.settings\org.eclipse.core.resources.prefs

     文件        162  2008-05-30 17:03  goodsMgr\.settings\org.eclipse.jdt.ui.prefs

     文件        137  2008-05-28 11:25  goodsMgr\.settings\org.eclipse.ltk.core.refactoring.prefs

     文件       1809  2008-05-28 11:25  goodsMgr\.settings\org.eclipse.wst.validation.prefs

     文件        433  2008-06-17 09:41  goodsMgr\.tomcatplugin

     文件       4575  2008-09-16 16:12  goodsMgr\build.xml

     文件        644  2003-01-01 01:34  goodsMgr\css\bg.gif

     文件       1574  2008-03-17 15:37  goodsMgr\css\button2.gif

     文件       1662  2008-03-17 15:37  goodsMgr\css\button3.gif

     文件       1807  2008-03-17 15:37  goodsMgr\css\button4.gif

     文件       4185  2008-04-07 14:03  goodsMgr\css\button4.png

     文件       1969  2008-03-17 15:37  goodsMgr\css\button5.gif

     文件       2127  2008-03-17 15:37  goodsMgr\css\button6.gif

     文件       2247  2008-03-17 15:37  goodsMgr\css\button7.gif

     文件       1667  2007-12-10 20:27  goodsMgr\css\font.css

     文件        557  2008-03-04 16:51  goodsMgr\css\goto.gif

     文件        372  2008-05-23 09:34  goodsMgr\css\ie.gif

     文件        614  2006-09-22 10:26  goodsMgr\css\key.gif

     文件       6072  2008-03-28 10:30  goodsMgr\css\sfda.css

    ..A.SH.     23552  2008-06-13 09:57  goodsMgr\css\Thumbs.db

    ..A.SHR       423  2008-05-23 10:27  goodsMgr\css\vssver2.scc

     文件       6579  2008-06-13 09:56  goodsMgr\css\welcome.jpg

     文件         85  2008-06-16 09:29  goodsMgr\goodsMgr.buildNO

     文件        153  2008-05-29 16:07  goodsMgr\index.jsp.bak

     文件     313898  2007-01-30 15:14  goodsMgr\lib\dom4j-1.6.1.jar

     文件      66049  2008-06-05 15:12  goodsMgr\lib\jspsmart.jar

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

评论

共有 条评论