资源简介

java+jsp实现的仓库管理系统,数据库:mysql,服务器:tomcat8.5,包含数据库sql文件。

资源截图

代码片段和文件信息

package com.action;

import java.io.PrintWriter;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts2.ServletActionContext;
import org.apache.struts2.interceptor.ServletRequestAware;
import org.apache.struts2.interceptor.SessionAware;

import com.opensymphony.xwork2.ActionSupport;

/**
 * action基类 继承自ActionSupport类  
 * 为子类提供struts2 map类型session对象
 * 提供分页工具变量等
 */
public class baseAction extends ActionSupport implements SessionAwareServletRequestAware {
private static final long serialVersionUID = 1L;

protected int page = 1;
protected int size = 10;
protected String pageTool;
protected Mapject> session;
protected HttpServletRequest servletRequest;


@Override//重写自父接口SessionAware的方法有容器自行调用并给session对象赋值
public void setSession(Mapject> session) {
this.session = session;
}

//用于在子类中获取session对象
public Mapject> getSession(){
return session;
}

public int getPage() {
return page;
}

public void setPage(int page) {
this.page = page;
}

public int getSize() {
return size;
}

public void setSize(int size) {
this.size = size;
}

public String getPageTool() {
return pageTool;
}

public void setPageTool(String pageTool) {
this.pageTool = pageTool;
}

@Override
public void setServletRequest(HttpServletRequest servletRequest) {
this.servletRequest = servletRequest;
}

public HttpServletRequest getServletRequest() {
return servletRequest;
}

/**
 * 返回响应数据
 * @param msg
 */
protected void sendResponseMsg(String msg) {
HttpServletResponse response = ServletActionContext.getResponse();
response.setContentType(“text/html“);
response.setHeader(“Pragma“ “no-cache“);
response.setHeader(“Cache-Control“ “no-store“);
response.addHeader(“Cache-Control“ “must-revalidate“);
response.addHeader(“Cache-Control“ “post-check=0 pre-check=0“);
response.setDateHeader(“Expires“ 0);
response.setCharacterEncoding(“UTF-8“);
PrintWriter out = null;
try {
out = response.getWriter();
out.print(msg);
} catch (Throwable e) {
e.printStackTrace();
} finally {
out.close();
}
}

}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-04-02 18:36  ssh_depot\
     文件         841  2015-04-30 09:44  ssh_depot\.classpath
     文件        1042  2015-04-30 09:46  ssh_depot\.project
     目录           0  2018-04-02 18:36  ssh_depot\.settings\
     文件         503  2012-12-09 15:44  ssh_depot\.settings\.jsdtscope
     文件          57  2017-05-08 18:08  ssh_depot\.settings\org.eclipse.core.resources.prefs
     文件         364  2012-12-09 15:44  ssh_depot\.settings\org.eclipse.jdt.core.prefs
     文件         479  2015-04-30 09:46  ssh_depot\.settings\org.eclipse.wst.common.component
     文件         345  2015-04-30 09:44  ssh_depot\.settings\org.eclipse.wst.common.project.facet.core.xml
     文件          49  2012-12-09 15:44  ssh_depot\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2012-12-09 15:44  ssh_depot\.settings\org.eclipse.wst.jsdt.ui.superType.name
     目录           0  2018-04-02 18:36  ssh_depot\WebContent\
     目录           0  2018-04-02 18:36  ssh_depot\WebContent\meta-INF\
     文件          39  2015-04-30 09:46  ssh_depot\WebContent\meta-INF\MANIFEST.MF
     目录           0  2018-04-02 18:36  ssh_depot\WebContent\WEB-INF\
     目录           0  2018-04-02 18:36  ssh_depot\WebContent\WEB-INF\lib\
     文件      445288  2017-05-08 17:14  ssh_depot\WebContent\WEB-INF\lib\antlr-2.7.7.jar
     文件       53468  2017-05-08 17:14  ssh_depot\WebContent\WEB-INF\lib\asm-5.1.jar
     文件       47195  2017-05-08 17:14  ssh_depot\WebContent\WEB-INF\lib\asm-commons-5.1.jar
     文件       29130  2017-05-08 17:14  ssh_depot\WebContent\WEB-INF\lib\asm-tree-5.1.jar
     文件      497865  2017-05-08 17:14  ssh_depot\WebContent\WEB-INF\lib\c3p0-0.9.5.2.jar
     文件       64110  2017-05-08 17:14  ssh_depot\WebContent\WEB-INF\lib\classmate-1.3.0.jar
     文件       70282  2017-05-08 17:14  ssh_depot\WebContent\WEB-INF\lib\commons-fileupload-1.3.2.jar
     文件      185140  2017-05-08 17:14  ssh_depot\WebContent\WEB-INF\lib\commons-io-2.4.jar
     文件      434678  2017-05-08 17:14  ssh_depot\WebContent\WEB-INF\lib\commons-lang3-3.4.jar
     文件       61829  2017-05-08 17:14  ssh_depot\WebContent\WEB-INF\lib\commons-logging-1.2.jar
     文件      313898  2017-05-08 17:14  ssh_depot\WebContent\WEB-INF\lib\dom4j-1.6.1.jar
     文件     1350624  2017-05-08 17:14  ssh_depot\WebContent\WEB-INF\lib\freemarker-2.3.23.jar
     文件       75288  2017-05-08 17:14  ssh_depot\WebContent\WEB-INF\lib\hibernate-commons-annotations-5.0.1.Final.jar
     文件     6614635  2017-05-08 17:14  ssh_depot\WebContent\WEB-INF\lib\hibernate-core-5.2.9.Final.jar
     文件      113371  2017-05-08 17:14  ssh_depot\WebContent\WEB-INF\lib\hibernate-jpa-2.1-api-1.0.0.Final.jar
............此处省略196个文件信息

评论

共有 条评论