Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
sundayhappy committed May 20, 2015
0 parents commit b534b1e
Show file tree
Hide file tree
Showing 43 changed files with 1,702 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jre7">
<attributes>
<attribute name="owner.project.facets" value="java"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat v7.0">
<attributes>
<attribute name="owner.project.facets" value="jst.web"/>
</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="lib" path="D:/workspace/change_book_server/lib/mysql-connector-java-5.1.26-bin.jar"/>
<classpathentry kind="lib" path="D:/workspace/change_book_server/lib/commons-codec-1.8.jar"/>
<classpathentry kind="output" path="build/classes"/>
</classpath>
36 changes: 36 additions & 0 deletions .project
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>change_book_server</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.common.project.facet.core.builder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.validation.validationbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
</natures>
</projectDescription>
12 changes: 12 additions & 0 deletions .settings/.jsdtscope
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="WebContent"/>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.WebProject">
<attributes>
<attribute name="hide" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.baseBrowserLibrary"/>
<classpathentry kind="output" path=""/>
</classpath>
7 changes: 7 additions & 0 deletions .settings/org.eclipse.jdt.core.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
org.eclipse.jdt.core.compiler.compliance=1.7
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.7
8 changes: 8 additions & 0 deletions .settings/org.eclipse.wst.common.component
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
<wb-module deploy-name="change_book_server">
<wb-resource deploy-path="/" source-path="/WebContent" tag="defaultRootSource"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src"/>
<property name="context-root" value="change_book_server"/>
<property name="java-output-path" value="/change_book_server/build/classes"/>
</wb-module>
</project-modules>
10 changes: 10 additions & 0 deletions .settings/org.eclipse.wst.common.project.facet.core.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<runtime name="Apache Tomcat v7.0"/>
<fixed facet="java"/>
<fixed facet="jst.web"/>
<fixed facet="wst.jsdt.web"/>
<installed facet="java" version="1.7"/>
<installed facet="jst.web" version="3.0"/>
<installed facet="wst.jsdt.web" version="1.0"/>
</faceted-project>
1 change: 1 addition & 0 deletions .settings/org.eclipse.wst.jsdt.ui.superType.container
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.eclipse.wst.jsdt.launching.baseBrowserLibrary
1 change: 1 addition & 0 deletions .settings/org.eclipse.wst.jsdt.ui.superType.name
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Window
3 changes: 3 additions & 0 deletions WebContent/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Manifest-Version: 1.0
Class-Path:

Binary file added WebContent/WEB-INF/lib/commons-codec-1.8.jar
Binary file not shown.
Binary file not shown.
98 changes: 98 additions & 0 deletions WebContent/WEB-INF/web.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
id="WebApp_ID" version="3.0">
<display-name>change_book_server</display-name>

<servlet>
<servlet-name>PushMessage</servlet-name>
<servlet-class>com.touch.graduation.servlet.PushMessageServlet</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>PushMessage</servlet-name>
<url-pattern>/pushMessage</url-pattern>
</servlet-mapping>

<servlet>
<servlet-name>Login</servlet-name>
<servlet-class>com.touch.graduation.servlet.LoginServlet</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>Login</servlet-name>
<url-pattern>/login</url-pattern>
</servlet-mapping>

<servlet>
<servlet-name>Register</servlet-name>
<servlet-class>com.touch.graduation.servlet.RegisterServlet</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>Register</servlet-name>
<url-pattern>/register</url-pattern>
</servlet-mapping>

<servlet>
<servlet-name>GetMessage</servlet-name>
<servlet-class>com.touch.graduation.servlet.GetMessageServlet</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>GetMessage</servlet-name>
<url-pattern>/getMessage</url-pattern>
</servlet-mapping>

<servlet>
<servlet-name>GetAccountIntroduce</servlet-name>
<servlet-class>com.touch.graduation.servlet.GetAccountIntroduceServlet</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>GetAccountIntroduce</servlet-name>
<url-pattern>/getAccountIntroduce</url-pattern>
</servlet-mapping>

<servlet>
<servlet-name>SetAccountIntroduce</servlet-name>
<servlet-class>com.touch.graduation.servlet.SetAccountIntroduceServlet</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>SetAccountIntroduce</servlet-name>
<url-pattern>/setAccountIntroduce</url-pattern>
</servlet-mapping>

<servlet>
<servlet-name>GetPublishedMessage</servlet-name>
<servlet-class>com.touch.graduation.servlet.GetPublishedMessageSetvlet</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>GetPublishedMessage</servlet-name>
<url-pattern>/getPublishedMessage</url-pattern>
</servlet-mapping>

<servlet>
<servlet-name>RemoveBookFromBookToChangedBook</servlet-name>
<servlet-class>com.touch.graduation.servlet.RemoveBookFromBookToChangedBookServlet</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>RemoveBookFromBookToChangedBook</servlet-name>
<url-pattern>/removeBookFromBookToChangedBook</url-pattern>
</servlet-mapping>

<servlet>
<servlet-name>GetGivedBookMessage</servlet-name>
<servlet-class>com.touch.graduation.servlet.GetGivedBookMessageServlet</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>GetGivedBookMessage</servlet-name>
<url-pattern>/getGivedBookMessage</url-pattern>
</servlet-mapping>

</web-app>
Binary file added WebContent/images/bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
48 changes: 48 additions & 0 deletions WebContent/index.jsp
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="style/wall.css" rel="stylesheet" type="text/css" />
<title>服务器</title>

<script type="text/javascript">
function disptime() {
var today = new Date(); //获得当前时间
var yy = today.getFullYear();
var m = today.getMonth() + 1;
var dd = today.getDate();
var hh = today.getHours(); //获得小时、分钟、秒
var mm = today.getMinutes();
var ss = today.getSeconds();
if (m < 10)
m = "0" + m;
if (dd < 10)
dd = "0" + dd;
if (hh < 10)
hh = "0" + hh;
if (mm < 10)
mm = "0" + mm;
if (ss < 10)
ss = "0" + ss;
/*设置div的内容为当前时间*/
document.getElementById("myclock").innerHTML = "<h1>现在时间是:" + yy + ""
+ m + "" + dd + "" + hh + ":" + mm + ":" + ss + " " + "<h1>";
/*
使用setTimeout在函数disptime()体内再次调用setTimeout
设置定时器每隔1秒(1000毫秒),调用函数disptime()执行,刷新时钟显示
*/
setTimeout("disptime()", 1000);
}
</script>
</head>
<body onload="disptime()">
<br>
<br>
<div id="myclock"></div>

</body>
</html>
72 changes: 72 additions & 0 deletions WebContent/style/wall.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
body {
background: url("../images/bg.png");
}

/* #main2 {
margin: auto;
padding-top: 10px;
padding-left: 23%;
width: 72%;
float: left;
} */

#main {
text-align: center; width : 100%;
//background: #FFFFCC;
width: 100%;
}

#main ul li {
text-align: center;
font-size: 25px;
display: inline;
width: 50px;
line-height: 50px;
text-shadow: 0 1px 1px rgba(0, 0, 0, .2);
padding: 15px;
}

#main a:link {
text-decoration: none;
color: blue
}

#main a:active {
text-decoration: blink
}

#main a:hover {
text-decoration: underline;
color: red
}

#main a:visited {
text-decoration: none;
color: green
}

.content {
width: 600px;
height: auto;
font-size: 16px;
font-family: "微软雅黑";
}

.time {
width: 300px;
height: 20px;
font-size: 16px;
}

.rub {
height: auto;
min-width: 20px;
}

#logoff {
width: 50px;
float: right;
}
#myclock{
text-align: center;
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added lib/commons-codec-1.8.jar
Binary file not shown.
Binary file added lib/mysql-connector-java-5.1.26-bin.jar
Binary file not shown.
Loading

0 comments on commit b534b1e

Please sign in to comment.