commit 7841d0516adbfd18989e922826ea2b4085bff21d Author: dida <480918301@qq.com> Date: Fri Jan 3 09:01:40 2020 +0800 login diff --git a/1.jsp b/1.jsp new file mode 100644 index 0000000..802a43b --- /dev/null +++ b/1.jsp @@ -0,0 +1,249 @@ +<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> +<%@ taglib prefix="s" uri="/struts-tags" %> +<% +String path = request.getContextPath(); +String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; +%> + + + + + + + 登录|注册 + + + + + + + + + + + + + + + + + + + +
+
+ +
+ + 登录 + + 注册 + +
+ + +
+
+
+ 登录| + + 注册 +
+ + + + + + + + +
+
+ + +
+

注册

+

忘记密码

+
+ +
+

———其他登录方式 ———

+ +
+
+ + + + diff --git a/META-INF/MANIFEST.MF b/META-INF/MANIFEST.MF new file mode 100644 index 0000000..254272e --- /dev/null +++ b/META-INF/MANIFEST.MF @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +Class-Path: + diff --git a/WEB-INF/classes/RegisterAction.class b/WEB-INF/classes/RegisterAction.class new file mode 100644 index 0000000..090722b Binary files /dev/null and b/WEB-INF/classes/RegisterAction.class differ diff --git a/WEB-INF/classes/com/AbstractUserinfo.class b/WEB-INF/classes/com/AbstractUserinfo.class new file mode 100644 index 0000000..384a86b Binary files /dev/null and b/WEB-INF/classes/com/AbstractUserinfo.class differ diff --git a/WEB-INF/classes/com/HibernateSessionFactory.class b/WEB-INF/classes/com/HibernateSessionFactory.class new file mode 100644 index 0000000..277b04f Binary files /dev/null and b/WEB-INF/classes/com/HibernateSessionFactory.class differ diff --git a/WEB-INF/classes/com/Userinfo.class b/WEB-INF/classes/com/Userinfo.class new file mode 100644 index 0000000..fe4c5a5 Binary files /dev/null and b/WEB-INF/classes/com/Userinfo.class differ diff --git a/WEB-INF/classes/com/Userinfo.hbm.xml b/WEB-INF/classes/com/Userinfo.hbm.xml new file mode 100644 index 0000000..d293198 --- /dev/null +++ b/WEB-INF/classes/com/Userinfo.hbm.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/WEB-INF/classes/hibernate.cfg.xml b/WEB-INF/classes/hibernate.cfg.xml new file mode 100644 index 0000000..fcadc3d --- /dev/null +++ b/WEB-INF/classes/hibernate.cfg.xml @@ -0,0 +1,28 @@ + + + + + + + + + org.hibernate.dialect.MySQLDialect + + + jdbc:mysql://localhost:3306/postgres + + root + 3141592653 + + com.mysql.jdbc.Driver + + + postgres + + + + + + \ No newline at end of file diff --git a/WEB-INF/classes/struts.xml b/WEB-INF/classes/struts.xml new file mode 100644 index 0000000..b78e8a8 --- /dev/null +++ b/WEB-INF/classes/struts.xml @@ -0,0 +1,23 @@ + + + + + + + +/register.jsp + + +/login.jsp + + +/success.jsp +/error.jsp + + + +/welcome.jsp +/success.jsp + + + diff --git a/WEB-INF/lib/antlr-2.7.6.jar b/WEB-INF/lib/antlr-2.7.6.jar new file mode 100644 index 0000000..3702b64 Binary files /dev/null and b/WEB-INF/lib/antlr-2.7.6.jar differ diff --git a/WEB-INF/lib/aopalliance-1.0.jar b/WEB-INF/lib/aopalliance-1.0.jar new file mode 100644 index 0000000..578b1a0 Binary files /dev/null and b/WEB-INF/lib/aopalliance-1.0.jar differ diff --git a/WEB-INF/lib/cglib-2.2.jar b/WEB-INF/lib/cglib-2.2.jar new file mode 100644 index 0000000..084ef6e Binary files /dev/null and b/WEB-INF/lib/cglib-2.2.jar differ diff --git a/WEB-INF/lib/classworlds-1.1.jar b/WEB-INF/lib/classworlds-1.1.jar new file mode 100644 index 0000000..6ec5c21 Binary files /dev/null and b/WEB-INF/lib/classworlds-1.1.jar differ diff --git a/WEB-INF/lib/commons-beanutils-1.7.0.jar b/WEB-INF/lib/commons-beanutils-1.7.0.jar new file mode 100644 index 0000000..b1b89c9 Binary files /dev/null and b/WEB-INF/lib/commons-beanutils-1.7.0.jar differ diff --git a/WEB-INF/lib/commons-chain-1.2.jar b/WEB-INF/lib/commons-chain-1.2.jar new file mode 100644 index 0000000..20fa4c5 Binary files /dev/null and b/WEB-INF/lib/commons-chain-1.2.jar differ diff --git a/WEB-INF/lib/commons-collections-3.1.jar b/WEB-INF/lib/commons-collections-3.1.jar new file mode 100644 index 0000000..41e230f Binary files /dev/null and b/WEB-INF/lib/commons-collections-3.1.jar differ diff --git a/WEB-INF/lib/commons-collections-3.2.jar b/WEB-INF/lib/commons-collections-3.2.jar new file mode 100644 index 0000000..75580be Binary files /dev/null and b/WEB-INF/lib/commons-collections-3.2.jar differ diff --git a/WEB-INF/lib/commons-digester-2.0.jar b/WEB-INF/lib/commons-digester-2.0.jar new file mode 100644 index 0000000..9c8bd13 Binary files /dev/null and b/WEB-INF/lib/commons-digester-2.0.jar differ diff --git a/WEB-INF/lib/commons-fileupload-1.2.1.jar b/WEB-INF/lib/commons-fileupload-1.2.1.jar new file mode 100644 index 0000000..7db423e Binary files /dev/null and b/WEB-INF/lib/commons-fileupload-1.2.1.jar differ diff --git a/WEB-INF/lib/commons-io-1.3.2.jar b/WEB-INF/lib/commons-io-1.3.2.jar new file mode 100644 index 0000000..865c9e4 Binary files /dev/null and b/WEB-INF/lib/commons-io-1.3.2.jar differ diff --git a/WEB-INF/lib/commons-lang-2.3.jar b/WEB-INF/lib/commons-lang-2.3.jar new file mode 100644 index 0000000..c33b353 Binary files /dev/null and b/WEB-INF/lib/commons-lang-2.3.jar differ diff --git a/WEB-INF/lib/commons-logging-1.0.4.jar b/WEB-INF/lib/commons-logging-1.0.4.jar new file mode 100644 index 0000000..b73a80f Binary files /dev/null and b/WEB-INF/lib/commons-logging-1.0.4.jar differ diff --git a/WEB-INF/lib/commons-logging-api-1.1.jar b/WEB-INF/lib/commons-logging-api-1.1.jar new file mode 100644 index 0000000..d1abcbb Binary files /dev/null and b/WEB-INF/lib/commons-logging-api-1.1.jar differ diff --git a/WEB-INF/lib/commons-validator-1.3.1.jar b/WEB-INF/lib/commons-validator-1.3.1.jar new file mode 100644 index 0000000..55b12b1 Binary files /dev/null and b/WEB-INF/lib/commons-validator-1.3.1.jar differ diff --git a/WEB-INF/lib/dom4j-1.6.1.jar b/WEB-INF/lib/dom4j-1.6.1.jar new file mode 100644 index 0000000..c8c4dbb Binary files /dev/null and b/WEB-INF/lib/dom4j-1.6.1.jar differ diff --git a/WEB-INF/lib/ehcache-1.2.3.jar b/WEB-INF/lib/ehcache-1.2.3.jar new file mode 100644 index 0000000..86415b3 Binary files /dev/null and b/WEB-INF/lib/ehcache-1.2.3.jar differ diff --git a/WEB-INF/lib/ejb3-persistence.jar b/WEB-INF/lib/ejb3-persistence.jar new file mode 100644 index 0000000..32c2266 Binary files /dev/null and b/WEB-INF/lib/ejb3-persistence.jar differ diff --git a/WEB-INF/lib/freemarker-2.3.16.jar b/WEB-INF/lib/freemarker-2.3.16.jar new file mode 100644 index 0000000..968c1d3 Binary files /dev/null and b/WEB-INF/lib/freemarker-2.3.16.jar differ diff --git a/WEB-INF/lib/hibernate-annotations.jar b/WEB-INF/lib/hibernate-annotations.jar new file mode 100644 index 0000000..24b1583 Binary files /dev/null and b/WEB-INF/lib/hibernate-annotations.jar differ diff --git a/WEB-INF/lib/hibernate-commons-annotations.jar b/WEB-INF/lib/hibernate-commons-annotations.jar new file mode 100644 index 0000000..e0ca904 Binary files /dev/null and b/WEB-INF/lib/hibernate-commons-annotations.jar differ diff --git a/WEB-INF/lib/hibernate-entitymanager.jar b/WEB-INF/lib/hibernate-entitymanager.jar new file mode 100644 index 0000000..662eab1 Binary files /dev/null and b/WEB-INF/lib/hibernate-entitymanager.jar differ diff --git a/WEB-INF/lib/hibernate-validator.jar b/WEB-INF/lib/hibernate-validator.jar new file mode 100644 index 0000000..760880c Binary files /dev/null and b/WEB-INF/lib/hibernate-validator.jar differ diff --git a/WEB-INF/lib/hibernate3.jar b/WEB-INF/lib/hibernate3.jar new file mode 100644 index 0000000..5179125 Binary files /dev/null and b/WEB-INF/lib/hibernate3.jar differ diff --git a/WEB-INF/lib/javassist-3.7.ga.jar b/WEB-INF/lib/javassist-3.7.ga.jar new file mode 100644 index 0000000..44d16da Binary files /dev/null and b/WEB-INF/lib/javassist-3.7.ga.jar differ diff --git a/WEB-INF/lib/javassist-3.9.0.GA.jar b/WEB-INF/lib/javassist-3.9.0.GA.jar new file mode 100644 index 0000000..0316422 Binary files /dev/null and b/WEB-INF/lib/javassist-3.9.0.GA.jar differ diff --git a/WEB-INF/lib/jsf-api.jar b/WEB-INF/lib/jsf-api.jar new file mode 100644 index 0000000..60ae0f6 Binary files /dev/null and b/WEB-INF/lib/jsf-api.jar differ diff --git a/WEB-INF/lib/jsf-impl.jar b/WEB-INF/lib/jsf-impl.jar new file mode 100644 index 0000000..6550b01 Binary files /dev/null and b/WEB-INF/lib/jsf-impl.jar differ diff --git a/WEB-INF/lib/json-lib-2.1-jdk15.jar b/WEB-INF/lib/json-lib-2.1-jdk15.jar new file mode 100644 index 0000000..28880c4 Binary files /dev/null and b/WEB-INF/lib/json-lib-2.1-jdk15.jar differ diff --git a/WEB-INF/lib/jstl-1.2.jar b/WEB-INF/lib/jstl-1.2.jar new file mode 100644 index 0000000..0fd275e Binary files /dev/null and b/WEB-INF/lib/jstl-1.2.jar differ diff --git a/WEB-INF/lib/jta-1.1.jar b/WEB-INF/lib/jta-1.1.jar new file mode 100644 index 0000000..40a2cbd Binary files /dev/null and b/WEB-INF/lib/jta-1.1.jar differ diff --git a/WEB-INF/lib/log4j-1.2.14.jar b/WEB-INF/lib/log4j-1.2.14.jar new file mode 100644 index 0000000..6251307 Binary files /dev/null and b/WEB-INF/lib/log4j-1.2.14.jar differ diff --git a/WEB-INF/lib/mysql-connector-java-5.1.47-bin.jar b/WEB-INF/lib/mysql-connector-java-5.1.47-bin.jar new file mode 100644 index 0000000..fb25d64 Binary files /dev/null and b/WEB-INF/lib/mysql-connector-java-5.1.47-bin.jar differ diff --git a/WEB-INF/lib/ognl-3.0.jar b/WEB-INF/lib/ognl-3.0.jar new file mode 100644 index 0000000..b64b5bb Binary files /dev/null and b/WEB-INF/lib/ognl-3.0.jar differ diff --git a/WEB-INF/lib/oro-2.0.8.jar b/WEB-INF/lib/oro-2.0.8.jar new file mode 100644 index 0000000..23488d2 Binary files /dev/null and b/WEB-INF/lib/oro-2.0.8.jar differ diff --git a/WEB-INF/lib/slf4j-api-1.5.8.jar b/WEB-INF/lib/slf4j-api-1.5.8.jar new file mode 100644 index 0000000..20d1d37 Binary files /dev/null and b/WEB-INF/lib/slf4j-api-1.5.8.jar differ diff --git a/WEB-INF/lib/slf4j-log4j12-1.5.8.jar b/WEB-INF/lib/slf4j-log4j12-1.5.8.jar new file mode 100644 index 0000000..b63bcdc Binary files /dev/null and b/WEB-INF/lib/slf4j-log4j12-1.5.8.jar differ diff --git a/WEB-INF/lib/sslext-1.2-0.jar b/WEB-INF/lib/sslext-1.2-0.jar new file mode 100644 index 0000000..5d7175f Binary files /dev/null and b/WEB-INF/lib/sslext-1.2-0.jar differ diff --git a/WEB-INF/lib/struts2-convention-plugin-2.2.1.jar b/WEB-INF/lib/struts2-convention-plugin-2.2.1.jar new file mode 100644 index 0000000..304addf Binary files /dev/null and b/WEB-INF/lib/struts2-convention-plugin-2.2.1.jar differ diff --git a/WEB-INF/lib/struts2-core-2.2.1.jar b/WEB-INF/lib/struts2-core-2.2.1.jar new file mode 100644 index 0000000..65b9c3f Binary files /dev/null and b/WEB-INF/lib/struts2-core-2.2.1.jar differ diff --git a/WEB-INF/lib/struts2-embeddedjsp-plugin-2.2.1.jar b/WEB-INF/lib/struts2-embeddedjsp-plugin-2.2.1.jar new file mode 100644 index 0000000..00b459c Binary files /dev/null and b/WEB-INF/lib/struts2-embeddedjsp-plugin-2.2.1.jar differ diff --git a/WEB-INF/lib/struts2-json-plugin-2.2.1.jar b/WEB-INF/lib/struts2-json-plugin-2.2.1.jar new file mode 100644 index 0000000..8c8d139 Binary files /dev/null and b/WEB-INF/lib/struts2-json-plugin-2.2.1.jar differ diff --git a/WEB-INF/lib/xwork-core-2.2.1.jar b/WEB-INF/lib/xwork-core-2.2.1.jar new file mode 100644 index 0000000..8fb2c81 Binary files /dev/null and b/WEB-INF/lib/xwork-core-2.2.1.jar differ diff --git a/WEB-INF/web.xml b/WEB-INF/web.xml new file mode 100644 index 0000000..001cb6a --- /dev/null +++ b/WEB-INF/web.xml @@ -0,0 +1,20 @@ + + + + + index.jsp + + + struts2 + + org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter + + + + struts2 + /* + diff --git a/index.jsp b/index.jsp new file mode 100644 index 0000000..01d6e3e --- /dev/null +++ b/index.jsp @@ -0,0 +1,18 @@ +<%@ page language="java" contentType="text/html; charset=ISO-8859-1" + pageEncoding="ISO-8859-1"%> +<%@ taglib prefix="s" uri="/struts-tags" %> + + + +Hello World + + +

Hello World From Struts2

+
+
+ + +
+ + \ No newline at end of file diff --git a/login.jsp b/login.jsp new file mode 100644 index 0000000..f3fbe9c --- /dev/null +++ b/login.jsp @@ -0,0 +1,16 @@ +<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> +<%@ taglib prefix="s" uri="/struts-tags" %> + +登录页面 + +

请输入用户名和密码

+ + + + + + + + diff --git a/register.jsp b/register.jsp new file mode 100644 index 0000000..4d143ee --- /dev/null +++ b/register.jsp @@ -0,0 +1,18 @@ +<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> +<%@ taglib prefix="s" uri="/struts-tags" %> + +用户注册 + +

注册一个新用户

+ + + + + + + + + + + + diff --git a/success.jsp b/success.jsp new file mode 100644 index 0000000..b679216 --- /dev/null +++ b/success.jsp @@ -0,0 +1,9 @@ +<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> +<%@ taglib prefix="s" uri="/struts-tags" %> + +注册成功页面 + +

注册成功

+ +

返回首页

+ diff --git a/welcome.jsp b/welcome.jsp new file mode 100644 index 0000000..857d2e9 --- /dev/null +++ b/welcome.jsp @@ -0,0 +1,7 @@ +<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + +登陆成功 + +

欢迎登陆本系统

+ + \ No newline at end of file