Mise à jour (enfin!) du dernier semestre de cours
This commit is contained in:
@ -0,0 +1,3 @@
|
||||
#Fri Jan 09 08:16:41 CET 2009
|
||||
css-profile//WebContent/index.jsp=org.eclipse.wst.css.core.cssprofile.css2
|
||||
eclipse.preferences.version=1
|
@ -1,13 +1,12 @@
|
||||
<?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>
|
||||
BlankoNet</display-name>
|
||||
<display-name>BlankoNet</display-name>
|
||||
<servlet>
|
||||
<description>
|
||||
</description>
|
||||
<display-name>
|
||||
Profile</display-name>
|
||||
<servlet-name>First Servlet</servlet-name>
|
||||
<servlet-name>GeneralDispatcher</servlet-name>
|
||||
<servlet-class>Octopus</servlet-class>
|
||||
</servlet>
|
||||
<servlet>
|
||||
@ -17,19 +16,13 @@
|
||||
<load-on-startup>1</load-on-startup>
|
||||
</servlet>
|
||||
<servlet-mapping>
|
||||
<servlet-name>First Servlet</servlet-name>
|
||||
<url-pattern>/core</url-pattern>
|
||||
<servlet-name>GeneralDispatcher</servlet-name>
|
||||
<url-pattern>/contacts/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
<servlet-mapping>
|
||||
<servlet-name>Faces Servlet</servlet-name>
|
||||
<url-pattern>/faces/*</url-pattern>
|
||||
<servlet-mapping>
|
||||
<servlet-name>GeneralDispatcher</servlet-name>
|
||||
<url-pattern>/login/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
<jsp-config>
|
||||
<taglib>
|
||||
<taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
|
||||
<taglib-location>/WEB-INF/tld/c.tld</taglib-location>
|
||||
</taglib>
|
||||
</jsp-config>
|
||||
<welcome-file-list>
|
||||
<welcome-file>index.html</welcome-file>
|
||||
<welcome-file>index.htm</welcome-file>
|
||||
@ -42,4 +35,13 @@
|
||||
<extension>jpg</extension>
|
||||
<mime-type>image/jpeg</mime-type>
|
||||
</mime-mapping>
|
||||
<jsp-config>
|
||||
<jsp-property-group>
|
||||
<description>Toutes les pages</description>
|
||||
<url-pattern>*.jsp</url-pattern>
|
||||
<page-encoding>UTF-8</page-encoding>
|
||||
<include-prelude>/includes/header.jsp</include-prelude>
|
||||
<include-coda>/includes/footer.jsp</include-coda>
|
||||
</jsp-property-group>
|
||||
</jsp-config>
|
||||
</web-app>
|
||||
|
@ -1,129 +0,0 @@
|
||||
html, body {
|
||||
position: relative;
|
||||
top: 0;
|
||||
left: 0;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
background-color: white;
|
||||
color: black;
|
||||
}
|
||||
|
||||
a {
|
||||
color: orange;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
div#tete {
|
||||
position: absolute;
|
||||
top: 25px;
|
||||
left: 0;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
height: 125px;
|
||||
width: 100%;
|
||||
background-color: orange;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
div#navigation {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
height: 25px;
|
||||
width: 100%;
|
||||
margin: 0 0 5px 0;
|
||||
padding: 0;
|
||||
font-size: x-small; /* for IE 5.5 */
|
||||
f\ont-size: small; /* feed to compliant browsers */
|
||||
}
|
||||
|
||||
div#navigation ul {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
list-style-type: none;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
div#navigation ul li {
|
||||
height: 25px;
|
||||
width: auto;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
float: left;
|
||||
}
|
||||
|
||||
div#navigation ul li a {
|
||||
display: block;
|
||||
height: 25px;
|
||||
width: 100px;
|
||||
bottom: 0;
|
||||
line-height: 25px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
div#navigation ul li a:hover {
|
||||
color: white;
|
||||
background-color: green;
|
||||
-moz-border-radius: 10%;
|
||||
-webkit-border-radius: 10px;
|
||||
border-radius: 10%;
|
||||
}
|
||||
|
||||
div#contenu {
|
||||
position: absolute;
|
||||
height: auto;
|
||||
top: 180px;
|
||||
right: 0;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
div#menu {
|
||||
position: absolute;
|
||||
top: 150px;
|
||||
left: 0;
|
||||
height: 30px;
|
||||
width: 100%;
|
||||
margin: 0 0 5px 0;
|
||||
padding: 0;
|
||||
font-size: x-small; /* for IE 5.5 */
|
||||
f\ont-size: small; /* feed to compliant browsers */
|
||||
}
|
||||
|
||||
div#menu ul {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
list-style-type: none;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
div#menu ul li {
|
||||
height: 30px;
|
||||
width: auto;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
float: left;
|
||||
}
|
||||
|
||||
div#menu ul li a {
|
||||
display: block;
|
||||
height: 30px;
|
||||
width: 100px;
|
||||
bottom: 0;
|
||||
line-height: 30px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
div#menu ul li a:hover {
|
||||
color: white;
|
||||
background-color: brown;
|
||||
-moz-border-radius: 10%;
|
||||
-webkit-border-radius: 10px;
|
||||
border-radius: 10%;
|
||||
}
|
12
cours/P51/BlankoNet/WebContent/error.jsp
Normal file
12
cours/P51/BlankoNet/WebContent/error.jsp
Normal file
@ -0,0 +1,12 @@
|
||||
<%@ taglib uri="/WEB-INF/lib/tld/c.tld" prefix="mesTags" %>
|
||||
<!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">
|
||||
<title>Insert title here</title>
|
||||
</head>
|
||||
<body>
|
||||
<mesTags:url var="ecocho" value="http://ecocho.fr" />
|
||||
Voici un lien : <a href="${ecocho}">Ecocho.fr</a>
|
||||
</body>
|
||||
</html>
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
8
cours/P51/BlankoNet/WebContent/includes/footer.jsp
Normal file
8
cours/P51/BlankoNet/WebContent/includes/footer.jsp
Normal file
@ -0,0 +1,8 @@
|
||||
</div>
|
||||
<div id="bg-bottom-contenu">
|
||||
<p>Design by wooki</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
46
cours/P51/BlankoNet/WebContent/includes/header.jsp
Normal file
46
cours/P51/BlankoNet/WebContent/includes/header.jsp
Normal file
@ -0,0 +1,46 @@
|
||||
<%@ taglib uri="/WEB-INF/lib/tld/c.tld" prefix="c" %>
|
||||
<%@ taglib uri="/WEB-INF/lib/tld/fmt.tld" prefix="f" %>
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<title>BlankoNet</title>
|
||||
<link rel="stylesheet" type="text/css" href="/SocialNet/social.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="header">
|
||||
<div class="centrage">
|
||||
<h1><span>SocialNet</span></h1>
|
||||
<ul>
|
||||
<li><a href="/SocialNet" id="home">Accueil</a></li>
|
||||
<li><a href="#categories" id="about">Navigation</a></li>
|
||||
<li><a href="#contenu" id="link">Contenu</a></li>
|
||||
<li><a href="#" id="contact">Contact</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="content">
|
||||
<div id="side">
|
||||
<h2 id="categories">Navigation</h2>
|
||||
<div class="side-bloc">
|
||||
<ul>
|
||||
<li><a href="/SocialNet">Accueil</a></li>
|
||||
<li><a href="/SocialNet/login/">Connexion</a></li>
|
||||
</ul>
|
||||
<div class="bottom-side-bloc"></div>
|
||||
</div>
|
||||
|
||||
<h2 id="articles">Contacts</h2>
|
||||
<div class="side-bloc">
|
||||
<ul>
|
||||
<li><a href="/SocialNet/contacts">Liste</a></li>
|
||||
</ul>
|
||||
<div class="bottom-side-bloc"></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="contenu">
|
||||
<div id="bg-centre-contenu">
|
@ -1,112 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<title>BlankoNet</title>
|
||||
<link rel="stylesheet" type="text/css" href="/BlankoNet/social.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="header">
|
||||
<div class="centrage">
|
||||
<h1><span>Kit Zikorama</span></h1>
|
||||
<ul>
|
||||
<li><a href="#" id="home">Home</a></li>
|
||||
<li><a href="#" id="about">About</a></li>
|
||||
<li><a href="#" id="link">Link</a></li>
|
||||
<li><a href="#" id="contact">Contact</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<h2>Introduction</h2>
|
||||
<p>Soyez le bienvenue sur SocialNET, le réseau social qui BLABLA</p>
|
||||
|
||||
<div id="content">
|
||||
<c:out value="Bonjour" /><br/>
|
||||
<div id="side">
|
||||
<h2 id="categories">Categories</h2>
|
||||
<div class="side-bloc">
|
||||
<ul>
|
||||
<li><a href="#">Illum molestie</a></li>
|
||||
<li><a href="#">Illum molestie</a></li>
|
||||
<li><a href="#">Illum molestie</a></li>
|
||||
<li><a href="#">Illum molestie</a></li>
|
||||
</ul>
|
||||
<div class="bottom-side-bloc"></div>
|
||||
</div>
|
||||
|
||||
<h2 id="articles">Articles</h2>
|
||||
<div class="side-bloc">
|
||||
<ul>
|
||||
<li><a href="#">Illum molestie</a></li>
|
||||
<li><a href="#">Illum molestie</a></li>
|
||||
<li><a href="#">Illum molestie</a></li>
|
||||
<li><a href="#">Illum molestie</a></li>
|
||||
<li><a href="#">Illum molestie</a></li>
|
||||
<li><a href="#">Illum molestie</a></li>
|
||||
</ul>
|
||||
<div class="bottom-side-bloc"></div>
|
||||
</div>
|
||||
|
||||
<h2 id="articles">Archives</h2>
|
||||
<div class="side-bloc">
|
||||
<ul>
|
||||
<li><a href="#">Illum molestie</a></li>
|
||||
<li><a href="#">Illum molestie</a></li>
|
||||
<li><a href="#">Illum molestie</a></li>
|
||||
<li><a href="#">Illum molestie</a></li>
|
||||
<li><a href="#">Illum molestie</a></li>
|
||||
<li><a href="#">Illum molestie</a></li>
|
||||
<li><a href="#">Illum molestie</a></li>
|
||||
<li><a href="#">Illum molestie</a></li>
|
||||
<li><a href="#">Illum molestie</a></li>
|
||||
</ul>
|
||||
<div class="bottom-side-bloc"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="contenu">
|
||||
<div id="bg-centre-contenu">
|
||||
|
||||
<h2>Tation minim</h2>
|
||||
<p>Tation minim ut consequat molestie at illum hendrerit eum magna. Hendrerit ullamcorper luptatum consequat duis,
|
||||
laoreet accumsan et, ea. Consectetuer dolore wisi feugiat nostrud minim feugiat feugiat, ut dolore nisl feugait erat odio
|
||||
qui feugait. </p>
|
||||
<p>Tation minim ut consequat molestie at illum hendrerit eum magna. Hendrerit ullamcorper luptatum consequat duis,
|
||||
laoreet accumsan et, ea. Consectetuer dolore wisi feugiat nostrud minim feugiat feugiat, ut dolore nisl feugait erat odio
|
||||
qui feugait. </p>
|
||||
|
||||
<p>Tation minim ut consequat molestie at illum hendrerit eum magna. Hendrerit ullamcorper luptatum consequat duis,
|
||||
laoreet accumsan et, ea. Consectetuer dolore wisi feugiat nostrud minim feugiat feugiat, ut dolore nisl feugait erat odio
|
||||
qui feugait. </p>
|
||||
|
||||
<p>Tation minim ut consequat molestie at illum hendrerit eum magna. Hendrerit ullamcorper luptatum consequat duis,
|
||||
laoreet accumsan et, ea. Consectetuer dolore wisi feugiat nostrud minim feugiat feugiat, ut dolore nisl feugait erat odio
|
||||
qui feugait. </p>
|
||||
|
||||
<p>Tation minim ut consequat molestie at illum hendrerit eum magna. Hendrerit ullamcorper luptatum consequat duis,
|
||||
laoreet accumsan et, ea. Consectetuer dolore wisi feugiat nostrud minim feugiat feugiat, ut dolore nisl feugait erat odio
|
||||
qui feugait. </p>
|
||||
|
||||
<p>Tation minim ut consequat molestie at illum hendrerit eum magna. Hendrerit ullamcorper luptatum consequat duis,
|
||||
laoreet accumsan et, ea. Consectetuer dolore wisi feugiat nostrud minim feugiat feugiat, ut dolore nisl feugait erat odio
|
||||
qui feugait. </p>
|
||||
|
||||
|
||||
<h2>Tation minim</h2>
|
||||
<p>Tation minim ut consequat molestie at illum hendrerit eum magna. Hendrerit ullamcorper luptatum consequat duis,
|
||||
laoreet accumsan et, ea. Consectetuer dolore wisi feugiat nostrud minim feugiat feugiat, ut dolore nisl feugait erat odio
|
||||
qui feugait. </p>
|
||||
<p>Tation minim ut consequat molestie at illum hendrerit eum magna. Hendrerit ullamcorper luptatum consequat duis,
|
||||
laoreet accumsan et, ea. Consectetuer dolore wisi feugiat nostrud minim feugiat feugiat, ut dolore nisl feugait erat odio
|
||||
qui feugait. </p>
|
||||
|
||||
<p>Tation minim ut consequat molestie at illum hendrerit eum magna. Hendrerit ullamcorper luptatum consequat duis,
|
||||
laoreet accumsan et, ea. Consectetuer dolore wisi feugiat nostrud minim feugiat feugiat, ut dolore nisl feugait erat odio
|
||||
qui feugait. </p>
|
||||
</div>
|
||||
<div id="bg-bottom-contenu">
|
||||
<p>Design by wooki</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
<h2>SocialNET, qu'est ce dont ?</h2>
|
||||
<p>SocialNET permet de</p>
|
||||
<ul>
|
||||
<li>blah</li>
|
||||
<li>blah</li>
|
||||
</ul>
|
||||
|
File diff suppressed because one or more lines are too long
Binary file not shown.
Before Width: | Height: | Size: 10 KiB |
@ -31,9 +31,9 @@ img {
|
||||
}
|
||||
|
||||
#header h1 span {
|
||||
position : absolute ;
|
||||
/* position : absolute ;
|
||||
top : -9999px ;
|
||||
left : -9999px ;
|
||||
left : -9999px ;*/
|
||||
}
|
||||
|
||||
#header .centrage {
|
||||
|
Binary file not shown.
@ -29,30 +29,43 @@ import javax.servlet.http.HttpServletResponse;
|
||||
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
|
||||
// TODO Auto-generated method stub
|
||||
String uri;
|
||||
String base;
|
||||
//String base;
|
||||
String call;
|
||||
uri = request.getRequestURI();
|
||||
base= request.getContextPath();
|
||||
//base= request.getContextPath();
|
||||
|
||||
String tableau[] = uri.split("/");
|
||||
if(tableau[tableau.length - 1].isEmpty()) {
|
||||
System.out.println("erreur");
|
||||
// System.out.println("erreur");
|
||||
call = null;
|
||||
}
|
||||
else {
|
||||
call = tableau[2];
|
||||
System.out.println("Chemin: " + call);
|
||||
// System.out.println("Chemin: " + call);
|
||||
}
|
||||
|
||||
Map parameterList;
|
||||
parameterList = request.getParameterMap();
|
||||
if(parameterList.size() > 0){
|
||||
System.out.println(request.getParameter("nom"));
|
||||
// System.out.println(request.getParameter("nom"));
|
||||
}
|
||||
|
||||
System.out.println("Base du site: " + base);
|
||||
// System.out.println("Base du site: " + base);
|
||||
|
||||
String redirect = "/index.jsp";
|
||||
|
||||
if (call != null) {
|
||||
}
|
||||
else if (call == "contacts")
|
||||
{
|
||||
redirect = "/index.jsp";
|
||||
}
|
||||
else {
|
||||
redirect = "/error.jsp";
|
||||
}
|
||||
|
||||
ServletContext ctx = getServletContext();
|
||||
RequestDispatcher rd = ctx.getRequestDispatcher("/index.jsp");
|
||||
RequestDispatcher rd = ctx.getRequestDispatcher(redirect.toString());
|
||||
rd.forward(request,response);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user