Equip_Stand/.classpath
@@ -1,34 +1,71 @@ <?xml version="1.0" encoding="UTF-8"?> <classpath> <classpathentry kind="src" path="src"/> <classpathentry kind="con" path="com.genuitec.runtime.library/com.genuitec.generic_6.0"> <classpathentry exported="true" kind="con" path="com.genuitec.runtime.library/com.genuitec.generic_6.0"> <attributes> <attribute name="owner.project.facets" value="jst.web"/> <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/> </attributes> </classpathentry> <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/> <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/> <classpathentry kind="con" path="com.genuitec.runtime.library/com.genuitec.jstl_1.2.1"> <classpathentry exported="true" kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/> <classpathentry exported="true" kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/> <classpathentry exported="true" kind="con" path="com.genuitec.runtime.library/com.genuitec.jstl_1.2.1"> <attributes> <attribute name="org.eclipse.jst.component.dependency" value="WEB-INF/lib"/> <attribute name="owner.project.facets" value="jst.web.jstl"/> </attributes> </classpathentry> <classpathentry exported="true" kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry kind="lib" path="lib/c3p0-0.9.5.jar"/> <classpathentry kind="lib" path="lib/c3p0-oracle-thin-extras-0.9.5.jar"/> <classpathentry kind="lib" path="lib/commons-codec-1.10.jar"/> <classpathentry kind="lib" path="lib/gson-2.2.4.jar"/> <classpathentry kind="lib" path="lib/json-20150729.jar"/> <classpathentry kind="lib" path="lib/json-lib-2.1-jdk15.jar"/> <classpathentry kind="lib" path="lib/mchange-commons-java-0.2.9.jar"/> <classpathentry kind="lib" path="lib/tomcat7-websocket.jar"/> <classpathentry kind="lib" path="lib/websocket-api.jar"/> <classpathentry kind="lib" path="lib/mysql-connector-java-5.1.30-bin.jar"/> <classpathentry kind="lib" path="lib/mysql-connector-java-5.1.33-bin.jar"/> <classpathentry kind="lib" path="lib/poi-3.10.1-20140818.jar"/> <classpathentry kind="lib" path="lib/sqljdbc.jar"/> <classpathentry kind="lib" path="lib/struts2-core-2.2.3.jar"/> <classpathentry kind="lib" path="lib/struts2-json-plugin-2.2.3.jar"/> <classpathentry kind="lib" path="lib/struts2-sunspoter-stream-1.0.jar"/> <classpathentry kind="lib" path="lib/tomcat7-websocket.jar"/> <classpathentry kind="lib" path="lib/websocket-api.jar"/> <classpathentry kind="lib" path="lib/xwork-core-2.2.3.jar"/> <classpathentry kind="lib" path="lib/gson-2.2.4.jar"/> <classpathentry kind="lib" path="lib/commons-codec-1.10.jar"/> <classpathentry kind="lib" path="lib/mysql-connector-java-5.1.30-bin.jar"/> <classpathentry kind="lib" path="lib/mysql-connector-java-5.1.33-bin.jar"/> <classpathentry kind="lib" path="lib/poi-3.10.1-20140818.jar"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry kind="lib" path="WebRoot/WEB-INF/lib/bcmail-jdk15on-161.jar"/> <classpathentry kind="lib" path="WebRoot/WEB-INF/lib/bcpg-jdk15on-161.jar"/> <classpathentry kind="lib" path="WebRoot/WEB-INF/lib/bcpkix-jdk15on-161.jar"/> <classpathentry kind="lib" path="WebRoot/WEB-INF/lib/bcprov-ext-jdk15on-161.jar"/> <classpathentry kind="lib" path="WebRoot/WEB-INF/lib/bcprov-jdk15on-161.jar"/> <classpathentry kind="lib" path="WebRoot/WEB-INF/lib/bctls-jdk15on-161.jar"/> <classpathentry kind="lib" path="WebRoot/WEB-INF/lib/commons-beanutils-1.7.0.jar"/> <classpathentry kind="lib" path="WebRoot/WEB-INF/lib/commons-codec-1.10.jar"/> <classpathentry kind="lib" path="WebRoot/WEB-INF/lib/commons-collections-3.1.jar"/> <classpathentry kind="lib" path="WebRoot/WEB-INF/lib/commons-dbcp-1.2.1.jar"/> <classpathentry kind="lib" path="WebRoot/WEB-INF/lib/commons-fileupload-1.2.2.jar"/> <classpathentry kind="lib" path="WebRoot/WEB-INF/lib/commons-io-2.0.1.jar"/> <classpathentry kind="lib" path="WebRoot/WEB-INF/lib/commons-lang-2.5.jar"/> <classpathentry kind="lib" path="WebRoot/WEB-INF/lib/commons-pool-1.2.jar"/> <classpathentry kind="lib" path="WebRoot/WEB-INF/lib/dom4j-1.6.1.jar"/> <classpathentry kind="lib" path="WebRoot/WEB-INF/lib/ezmorph-1.0.3.jar"/> <classpathentry kind="lib" path="WebRoot/WEB-INF/lib/freemarker-2.3.16.jar"/> <classpathentry kind="lib" path="WebRoot/WEB-INF/lib/gson-2.2.4.jar"/> <classpathentry kind="lib" path="WebRoot/WEB-INF/lib/jacob.jar"/> <classpathentry kind="lib" path="WebRoot/WEB-INF/lib/javassist-3.11.0.GA.jar"/> <classpathentry kind="lib" path="WebRoot/WEB-INF/lib/jsf-api.jar"/> <classpathentry kind="lib" path="WebRoot/WEB-INF/lib/jsf-impl.jar"/> <classpathentry kind="lib" path="WebRoot/WEB-INF/lib/json-20150729.jar"/> <classpathentry kind="lib" path="WebRoot/WEB-INF/lib/json-lib-2.1-jdk15.jar"/> <classpathentry kind="lib" path="WebRoot/WEB-INF/lib/jstl-1.2.jar"/> <classpathentry kind="lib" path="WebRoot/WEB-INF/lib/mysql-connector-java-5.1.30-bin.jar"/> <classpathentry kind="lib" path="WebRoot/WEB-INF/lib/mysql-connector-java-5.1.33-bin.jar"/> <classpathentry kind="lib" path="WebRoot/WEB-INF/lib/ognl-3.0.1.jar"/> <classpathentry kind="lib" path="WebRoot/WEB-INF/lib/poi-3.10.1-20140818.jar"/> <classpathentry kind="lib" path="WebRoot/WEB-INF/lib/sqljdbc.jar"/> <classpathentry kind="lib" path="WebRoot/WEB-INF/lib/struts2-core-2.2.3.jar"/> <classpathentry kind="lib" path="WebRoot/WEB-INF/lib/struts2-json-plugin-2.2.3.jar"/> <classpathentry kind="lib" path="WebRoot/WEB-INF/lib/struts2-sunspoter-stream-1.0.jar"/> <classpathentry kind="lib" path="WebRoot/WEB-INF/lib/xwork-core-2.2.3.jar"/> <classpathentry kind="output" path="WebRoot/WEB-INF/classes"/> </classpath> Equip_Stand/WebRoot/WEB-INF/lib/bcmail-jdk15on-161.jarBinary files differ
Equip_Stand/WebRoot/WEB-INF/lib/bcpg-jdk15on-161.jarBinary files differ
Equip_Stand/WebRoot/WEB-INF/lib/bcpkix-jdk15on-161.jarBinary files differ
Equip_Stand/WebRoot/WEB-INF/lib/bcprov-ext-jdk15on-161.jarBinary files differ
Equip_Stand/WebRoot/WEB-INF/lib/bcprov-jdk15on-161.jarBinary files differ
Equip_Stand/WebRoot/WEB-INF/lib/bctls-jdk15on-161.jarBinary files differ
Equip_Stand/WebRoot/WEB-INF/lib/commons-beanutils-1.7.0.jarBinary files differ
Equip_Stand/WebRoot/WEB-INF/lib/commons-codec-1.10.jarBinary files differ
Equip_Stand/WebRoot/WEB-INF/lib/commons-collections-3.1.jarBinary files differ
Equip_Stand/WebRoot/WEB-INF/lib/commons-dbcp-1.2.1.jarBinary files differ
Equip_Stand/WebRoot/WEB-INF/lib/commons-fileupload-1.2.2.jarBinary files differ
Equip_Stand/WebRoot/WEB-INF/lib/commons-io-2.0.1.jarBinary files differ
Equip_Stand/WebRoot/WEB-INF/lib/commons-lang-2.5.jarBinary files differ
Equip_Stand/WebRoot/WEB-INF/lib/commons-pool-1.2.jarBinary files differ
Equip_Stand/WebRoot/WEB-INF/lib/dom4j-1.6.1.jarBinary files differ
Equip_Stand/WebRoot/WEB-INF/lib/ezmorph-1.0.3.jarBinary files differ
Equip_Stand/WebRoot/WEB-INF/lib/freemarker-2.3.16.jarBinary files differ
Equip_Stand/WebRoot/WEB-INF/lib/gson-2.2.4.jarBinary files differ
Equip_Stand/WebRoot/WEB-INF/lib/jacob.jarBinary files differ
Equip_Stand/WebRoot/WEB-INF/lib/javassist-3.11.0.GA.jarBinary files differ
Equip_Stand/WebRoot/WEB-INF/lib/jsf-api.jarBinary files differ
Equip_Stand/WebRoot/WEB-INF/lib/jsf-impl.jarBinary files differ
Equip_Stand/WebRoot/WEB-INF/lib/json-20150729.jarBinary files differ
Equip_Stand/WebRoot/WEB-INF/lib/json-lib-2.1-jdk15.jarBinary files differ
Equip_Stand/WebRoot/WEB-INF/lib/jstl-1.2.jarBinary files differ
Equip_Stand/WebRoot/WEB-INF/lib/mysql-connector-java-5.1.30-bin.jarBinary files differ
Equip_Stand/WebRoot/WEB-INF/lib/mysql-connector-java-5.1.33-bin.jarBinary files differ
Equip_Stand/WebRoot/WEB-INF/lib/ognl-3.0.1.jarBinary files differ
Equip_Stand/WebRoot/WEB-INF/lib/poi-3.10.1-20140818.jarBinary files differ
Equip_Stand/WebRoot/WEB-INF/lib/sqljdbc.jarBinary files differ
Equip_Stand/WebRoot/WEB-INF/lib/struts2-core-2.2.3.jarBinary files differ
Equip_Stand/WebRoot/WEB-INF/lib/struts2-json-plugin-2.2.3.jarBinary files differ
Equip_Stand/WebRoot/WEB-INF/lib/struts2-sunspoter-stream-1.0.jarBinary files differ
Equip_Stand/WebRoot/WEB-INF/lib/xwork-core-2.2.3.jarBinary files differ
Equip_Stand/WebRoot/WEB-INF/web.xml
@@ -4,10 +4,10 @@ <session-config> <session-timeout>30</session-timeout> </session-config> <!-- <servlet> <!-- <servlet> <servlet-name>LoginServlet</servlet-name> <servlet-class>com.fgkj.servlet.LoginServlet</servlet-class> </servlet> --> </servlet> --> <servlet> <servlet-name>EchartPictureDowload.servlet</servlet-name> <servlet-class>com.fgkj.servlets.EchartPictureDowloadServlet</servlet-class> @@ -19,7 +19,7 @@ <!-- <servlet-mapping> <servlet-name>LoginServlet</servlet-name> <url-pattern>/LoginServlet</url-pattern> </servlet-mapping> --> </servlet-mapping> --> <servlet-mapping> <servlet-name>EchartPictureDowload.servlet</servlet-name> <url-pattern>/EchartPictureDowload.servlet</url-pattern> @@ -60,26 +60,26 @@ <filter-name>LoginFilter</filter-name> <url-pattern>*.jsp</url-pattern> <url-pattern>*.html</url-pattern> </filter-mapping> --> <filter> </filter-mapping> --> <!-- <filter> <filter-name>HotlinkFilter</filter-name> <filter-class>com.fgkj.Filters.HotlinkFilter</filter-class> </filter> <filter-mapping> <filter-name>HotlinkFilter</filter-name> <url-pattern>*.jsp</url-pattern> </filter-mapping> <filter> </filter-mapping> --> <!-- <filter> <filter-name>I18nFilter</filter-name> <filter-class>com.fgkj.Filters.I18nFilter</filter-class> </filter> <filter-mapping> <filter-name>I18nFilter</filter-name> <url-pattern>*.jsp</url-pattern> </filter-mapping> <listener> </filter-mapping> --> <!-- <listener> <listener-class>com.fgkj.Listeners.Sessionlister</listener-class> </listener> </listener> --> <welcome-file-list> <welcome-file>CheckClient.jsp</welcome-file> </welcome-file-list> Equip_Stand/src/com/fgkj/Listeners/Sessionlister.java
New file @@ -0,0 +1,27 @@ package com.fgkj.Listeners; import java.util.Map; import javax.servlet.http.HttpSession; import javax.servlet.http.HttpSessionEvent; import javax.servlet.http.HttpSessionListener; public class Sessionlister implements HttpSessionListener { public void sessionCreated(HttpSessionEvent event) { //System.out.println("session被创建"); } public void sessionDestroyed(HttpSessionEvent event) { //System.out.println("session被销毁"); HttpSession session=event.getSession(); String ip=(String)session.getAttribute("ip"); /*Map<String,UserClient> map=(Map)session.getServletContext().getAttribute("users"); if(map!=null){ if(map.get(ip)!=null){ map.remove(ip); } }*/ } } Equip_Stand/src/com/fgkj/action/Device_infAction.java
@@ -15,7 +15,10 @@ return SUCCESS; } public static void main(String[] args) { Device_infAction action=new Device_infAction(); action.searchAll(); } Equip_Stand/src/struts.xml
@@ -21,32 +21,32 @@ <action name="FileUploadAction" class="com.fgkj.actions.FileUploadAction"> <!-- <action name="FileUploadAction" class="com.fgkj.action.FileUploadAction"> <result type="stream"> <param name="contentType">application/octet-stream</param> <param name="inputName">inputStream</param> <param name="contentDisposition">attachment;filename=${filename}</param> <param name="bufferSize">4096</param> </result> </action> </action> --> </package> <package name="p1" namespace="/" extends="struts-default"> <!-- <package name="p1" namespace="/" extends="struts-default"> <result-types> <!-- 用于处理下载文件点击取消时报出异常问题 --> 用于处理下载文件点击取消时报出异常问题 <result-type name="streamx" class="com.sunspoter.lib.web.struts2.dispatcher.StreamResultX"></result-type> </result-types> <action name="FileDownloadAction" class="com.fgkj.actions.FileDownloadAction"> <action name="FileDownloadAction" class="com.fgkj.action.FileDownloadAction"> <result type="streamx"> <param name="contentType">application/octet-stream</param> <!-- 设置返回的输入流,在对应的Action中要有对应的getDownloadFile方法 --> 设置返回的输入流,在对应的Action中要有对应的getDownloadFile方法 <param name="inputName">downloadFile</param> <!-- 设置下载时文件的名称,对应Action中药有filename属性 --> 设置下载时文件的名称,对应Action中药有filename属性 <param name="contentDisposition">attachment;filename=${filename}</param> <!-- 设置缓冲区大小4k --> 设置缓冲区大小4k <param name="bufferSize">4096</param> <!-- 下载时显示下载文件的大小,Action中要有对应的String类型的属性contentLength --> 下载时显示下载文件的大小,Action中要有对应的String类型的属性contentLength <param name="contentLength">${contentLength}</param> </result> </action> </package> </package> --> </struts>