diff options
author | Julien Sere <jsere> | 2011-01-22 17:22:13 +0000 |
---|---|---|
committer | Julien Sere <jsere> | 2011-01-22 17:22:13 +0000 |
commit | d26dbab8f789d787d5c39f8700b4ac19701f286f (patch) | |
tree | 4525a459c2c6582e6015fd82714f7c09b791efb9 /app/v2_java/WebContent | |
parent | a1051d374d9d7e0892dda3bf19bd4224ff0fa06b (diff) | |
download | 2011-usi-d26dbab8f789d787d5c39f8700b4ac19701f286f.tar.gz 2011-usi-d26dbab8f789d787d5c39f8700b4ac19701f286f.tar.bz2 2011-usi-d26dbab8f789d787d5c39f8700b4ac19701f286f.zip |
initial check out java
git-svn-id: file:///var/svn/2011-usi/trunk@13 db941bf7-0cb3-4dda-9634-87faf64f93a7
Diffstat (limited to 'app/v2_java/WebContent')
-rw-r--r-- | app/v2_java/WebContent/META-INF/MANIFEST.MF | 3 | ||||
-rw-r--r-- | app/v2_java/WebContent/WEB-INF/web.xml | 31 | ||||
-rw-r--r-- | app/v2_java/WebContent/game.html | 22 | ||||
-rw-r--r-- | app/v2_java/WebContent/index.html | 10 | ||||
-rw-r--r-- | app/v2_java/WebContent/login.html | 20 | ||||
-rw-r--r-- | app/v2_java/WebContent/user.html | 28 |
6 files changed, 114 insertions, 0 deletions
diff --git a/app/v2_java/WebContent/META-INF/MANIFEST.MF b/app/v2_java/WebContent/META-INF/MANIFEST.MF new file mode 100644 index 0000000..5e94951 --- /dev/null +++ b/app/v2_java/WebContent/META-INF/MANIFEST.MF @@ -0,0 +1,3 @@ +Manifest-Version: 1.0
+Class-Path:
+
diff --git a/app/v2_java/WebContent/WEB-INF/web.xml b/app/v2_java/WebContent/WEB-INF/web.xml new file mode 100644 index 0000000..1ee7e79 --- /dev/null +++ b/app/v2_java/WebContent/WEB-INF/web.xml @@ -0,0 +1,31 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<web-app id="WebApp_ID" version="2.4"
+ xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
+ <display-name>usi2011</display-name>
+ <servlet>
+ <description>
+ </description>
+ <display-name>Question</display-name>
+ <servlet-name>Question</servlet-name>
+ <servlet-class>org.usi2011.Question</servlet-class>
+ </servlet>
+ <servlet>
+ <description>
+ </description>
+ <display-name>User</display-name>
+ <servlet-name>User</servlet-name>
+ <servlet-class>org.usi2011.User</servlet-class>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>Question</servlet-name>
+ <url-pattern>/api/question/*</url-pattern>
+ </servlet-mapping>
+ <servlet-mapping>
+ <servlet-name>User</servlet-name>
+ <url-pattern>/api/user/</url-pattern>
+ </servlet-mapping>
+ <welcome-file-list>
+ <welcome-file>index.html</welcome-file>
+ </welcome-file-list>
+</web-app>
diff --git a/app/v2_java/WebContent/game.html b/app/v2_java/WebContent/game.html new file mode 100644 index 0000000..f53b9ad --- /dev/null +++ b/app/v2_java/WebContent/game.html @@ -0,0 +1,22 @@ +<html> +<head> +</head> + +<body> +<form method="POST" action="./api/game"> + <div class="form_line"> + <label name="authentication_key">authentication_key</label> + <input type="text" name="authentication_key" value="azertyuiop" /> + </div> + <div class="form_line"> + <label name="parameters">parameters</label> + <textarea rows="10" cols="80" name="parameters"> +{ "longpollingduration" : "60", "nbusersthreshold" : "2", "questiontimeframe" : "10", "nbquestions" : "20", "flushusertable" : "true" } + </textarea> + </div> + <div class="form_line"> + <input type="submit" /> + </div> +</form> +</body> +</html> diff --git a/app/v2_java/WebContent/index.html b/app/v2_java/WebContent/index.html new file mode 100644 index 0000000..46b3200 --- /dev/null +++ b/app/v2_java/WebContent/index.html @@ -0,0 +1,10 @@ +<!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=ISO-8859-1">
+<title>Insert title here</title>
+</head>
+<body>
+dsfsdfsdfsdfsfsdfs
+</body>
+</html>
\ No newline at end of file diff --git a/app/v2_java/WebContent/login.html b/app/v2_java/WebContent/login.html new file mode 100644 index 0000000..a24ea4b --- /dev/null +++ b/app/v2_java/WebContent/login.html @@ -0,0 +1,20 @@ +<html> +<head> +</head> + +<body> +<form method="POST" action="./api/login"> + <div class="form_line"> + <label name="mail">mail</label> + <input type="text" name="mail"></input> + </div> + <div class="form_line"> + <label name="password">password</label> + <input type="text" name="password"></input> + </div> + <div class="form_line"> + <input type="submit" /> + </div> +</form> +</body> +</html> diff --git a/app/v2_java/WebContent/user.html b/app/v2_java/WebContent/user.html new file mode 100644 index 0000000..e1be8e5 --- /dev/null +++ b/app/v2_java/WebContent/user.html @@ -0,0 +1,28 @@ +<html> +<head> +</head> + +<body> +<form method="POST" action="./api/user/"> + <div class="form_line"> + <label name="firstname">firstname</label> + <input type="text" name="firstname"></input> + </div> + <div class="form_line"> + <label name="lastname">lastname</label> + <input type="text" name="lastname"></input> + </div> + <div class="form_line"> + <label name="mail">mail</label> + <input type="text" name="mail"></input> + </div> + <div class="form_line"> + <label name="password">password</label> + <input type="text" name="password"></input> + </div> + <div class="form_line"> + <input type="submit" /> + </div> +</form> +</body> +</html> |