diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5236e1e --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*~ + diff --git a/cours/G54/20081218-Seance5~ b/cours/G54/20081218-Seance5~ deleted file mode 100644 index 9351f37..0000000 --- a/cours/G54/20081218-Seance5~ +++ /dev/null @@ -1,63 +0,0 @@ -Jeudi 18 décembre 2008 -G54 - -====== Correction jeu d'échecs ====== - -===== DUC ===== - -3 acteurs : - * utilisateur - * opérateur - * expert - -Opérateur et expert sont des utilisateurs. - -Tout les utilisateurs peuvent : - * rechercher une partie - * visualiser un échiquier - * naviguer dans une partie - -L'opérateur peut, en plus des utilisateurs : - * saisir une partie - * saisir un coup - -L'expert peut, en plus des utilisateurs : - * commenter une partie - -===== DCA/DPO ===== - -2 packages : - * Partie - * Échiquier - -Partie - - -> Échiquier - -==== Partie ==== - -Classes : - * Partie - * Coup - * Joueur - -==== Échiquier ==== - -Classes : - * Pièces - * TypePièces - * Case - * Échiquier - -====== Cours ====== - -Explication des techniques pour introduire les Design Patterns : - * Le papillon - * Le rectangle - -===== Design Pattern ===== - -3 types : - * Singleton - * Observateur - * Fabrique - - diff --git a/cours/P51/20081205-Seance3~ b/cours/P51/20081205-Seance3~ deleted file mode 100644 index 71065c6..0000000 --- a/cours/P51/20081205-Seance3~ +++ /dev/null @@ -1,89 +0,0 @@ -05 décembre 2008 -Séance 3 - -Cf. https://tetras.u-strasbg.fr/prive/pedagogie/LP/P51/index.php?menu=301 - -====== Cours ====== - -===== Les applets, quoi ça ? ===== - -Une applet est une application lancée sur la machine d'un client à partir d'un navigateur Web en appel à un serveur. - -Mais il y a certaines limitations pour des raisons de sécurité. - -===== Quelles sont les propriétés des applets ? ===== - -Donner un nom à une applet sert pour faire communiquer les applets entres elles. - -Même avec l'archive il faut dire quelle classe exécuter, donc la propriété CODE est obligatoire. - -===== Appels de méthodes ===== - -init : une fois au chargement de la page - -start : plusieurs fois après le démarrage de la page - -===== Activité principale d'une applet ===== - -Dans le cas d'une applet, en général c'est pour un but graphique, pour cela on utilise la méthode paint() qui permet de redessiner l'applet. - -À cet effet on peut considérer la méthode paint() comme la méthode principale de notre applet. - -===== Gestion des images ===== - -==== Récupération des images ==== - -Les images sont récupérées sur le serveur, via une URL relative donnée. - -getCodeBase : donne le répertoire de base de notre application sur le serveur. - -On rappelle qu'une applet ne peut charger des fichiers ou des choses QUE du serveur sur laquelle elle a été lancée. - -==== Affichage des images ==== - -On utilise la méthode DrawImage() - -==== MediaTracker ==== - -Chargement asynchrone des ressources (média) - -waitForAll() : patient que toutes les images soient chargées. - -===== Le contexte d'une applet ===== - -Permet d'accéder au navigateur ou aux autres applets de la page HTML. - -===== Déploiement d'une applet ===== - -Pour vérifier qu'une applet fonctionne, on peut tester sans navigateur web, à l'aide d'**appletviewer** - -Fichiers d'aide HTML : pas des fichiers auquels on veut accéder directement par notre serveur Web. Le navigateur ne peut pas accéder directement à l'archive. C'est l'applet qui accède aux fichiers contenus dans notre archive. - -===== Conclusion ===== - -Les applets c'est quand même le PHP et l'AJAX ne suffisent pas de faire ce qu'on veut, et les clients veulent pas une application lourde, mais possèdent JRE. - -Avantage des applets : rien n'est exécuté sur le serveur. - -Inconvénient : demande une certaine puissance. - -====== Démonstration ====== - -Démonstration de UNIV-R sur les serveurs de l'université. - - - - - - - - - - - - - - - - - diff --git a/cours/P51/BlankoNet/.classpath b/cours/P51/BlankoNet/.classpath new file mode 100644 index 0000000..bf90512 --- /dev/null +++ b/cours/P51/BlankoNet/.classpath @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/cours/P51/BlankoNet/.metadata/WebContent/WEB-INF/faces-config.pageflow b/cours/P51/BlankoNet/.metadata/WebContent/WEB-INF/faces-config.pageflow new file mode 100644 index 0000000..2f261b2 --- /dev/null +++ b/cours/P51/BlankoNet/.metadata/WebContent/WEB-INF/faces-config.pageflow @@ -0,0 +1,2 @@ + + diff --git a/cours/P51/BlankoNet/.project b/cours/P51/BlankoNet/.project new file mode 100644 index 0000000..0468320 --- /dev/null +++ b/cours/P51/BlankoNet/.project @@ -0,0 +1,30 @@ + + + BlankoNet + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.wst.common.project.facet.core.builder + + + + + org.eclipse.wst.validation.validationbuilder + + + + + + org.eclipse.wst.common.project.facet.core.nature + org.eclipse.jdt.core.javanature + org.eclipse.wst.common.modulecore.ModuleCoreNature + org.eclipse.jem.workbench.JavaEMFNature + + diff --git a/cours/P51/BlankoNet/.settings/org.eclipse.core.resources.prefs b/cours/P51/BlankoNet/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 0000000..894aa65 --- /dev/null +++ b/cours/P51/BlankoNet/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,3 @@ +#Thu Dec 18 14:20:06 CET 2008 +eclipse.preferences.version=1 +encoding/=UTF-8 diff --git a/cours/P51/BlankoNet/.settings/org.eclipse.jdt.core.prefs b/cours/P51/BlankoNet/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..1be1c7c --- /dev/null +++ b/cours/P51/BlankoNet/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,7 @@ +#Fri Dec 19 18:18:01 CET 2008 +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 +org.eclipse.jdt.core.compiler.compliance=1.6 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.source=1.6 diff --git a/cours/P51/BlankoNet/.settings/org.eclipse.jdt.ui.prefs b/cours/P51/BlankoNet/.settings/org.eclipse.jdt.ui.prefs new file mode 100644 index 0000000..3164f98 --- /dev/null +++ b/cours/P51/BlankoNet/.settings/org.eclipse.jdt.ui.prefs @@ -0,0 +1,3 @@ +#Fri Dec 19 14:07:03 CET 2008 +eclipse.preferences.version=1 +internal.default.compliance=default diff --git a/cours/P51/BlankoNet/.settings/org.eclipse.jst.common.project.facet.core.prefs b/cours/P51/BlankoNet/.settings/org.eclipse.jst.common.project.facet.core.prefs new file mode 100644 index 0000000..3e18f40 --- /dev/null +++ b/cours/P51/BlankoNet/.settings/org.eclipse.jst.common.project.facet.core.prefs @@ -0,0 +1,5 @@ +#Fri Dec 19 18:18:01 CET 2008 +classpath.helper/org.eclipse.jdt.launching.JRE_CONTAINER\:\:org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType\:\:java-1.6.0-openjdk/owners=jst.java\:6.0 +classpath.helper/org.eclipse.jst.server.core.container\:\:org.eclipse.jst.server.tomcat.runtimeTarget\:\:Apache\ Tomcat\ v6.0/owners=\#system\# +classpath.helper/org.eclipse.jst.server.core.container\:\:org.eclipse.jst.server.tomcat.runtimeTarget\:\:Serveur\ Tomcat\ v6.0\ sur\ localhost/owners=\#system\#;jst.web\:2.4 +eclipse.preferences.version=1 diff --git a/cours/P51/BlankoNet/.settings/org.eclipse.wst.common.component b/cours/P51/BlankoNet/.settings/org.eclipse.wst.common.component new file mode 100644 index 0000000..b11660b --- /dev/null +++ b/cours/P51/BlankoNet/.settings/org.eclipse.wst.common.component @@ -0,0 +1,12 @@ + + + + + + + uses + + + + + diff --git a/cours/P51/BlankoNet/.settings/org.eclipse.wst.common.project.facet.core.xml b/cours/P51/BlankoNet/.settings/org.eclipse.wst.common.project.facet.core.xml new file mode 100644 index 0000000..877a467 --- /dev/null +++ b/cours/P51/BlankoNet/.settings/org.eclipse.wst.common.project.facet.core.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/cours/P51/BlankoNet/.settings/org.eclipse.wst.ws.service.policy.prefs b/cours/P51/BlankoNet/.settings/org.eclipse.wst.ws.service.policy.prefs new file mode 100644 index 0000000..8e49a4d --- /dev/null +++ b/cours/P51/BlankoNet/.settings/org.eclipse.wst.ws.service.policy.prefs @@ -0,0 +1,3 @@ +#Fri Dec 19 17:33:48 CET 2008 +eclipse.preferences.version=1 +org.eclipse.wst.ws.service.policy.projectEnabled=false diff --git a/cours/P51/BlankoNet/WebContent/META-INF/MANIFEST.MF b/cours/P51/BlankoNet/WebContent/META-INF/MANIFEST.MF new file mode 100644 index 0000000..58630c0 --- /dev/null +++ b/cours/P51/BlankoNet/WebContent/META-INF/MANIFEST.MF @@ -0,0 +1,2 @@ +Manifest-Version: 1.0 + diff --git a/cours/P51/BlankoNet/WebContent/WEB-INF/faces-config.xml b/cours/P51/BlankoNet/WebContent/WEB-INF/faces-config.xml new file mode 100644 index 0000000..fbc7d0f --- /dev/null +++ b/cours/P51/BlankoNet/WebContent/WEB-INF/faces-config.xml @@ -0,0 +1,9 @@ + + + + + + + diff --git a/cours/P51/BlankoNet/WebContent/WEB-INF/lib/jstl.jar b/cours/P51/BlankoNet/WebContent/WEB-INF/lib/jstl.jar new file mode 100644 index 0000000..a02abec Binary files /dev/null and b/cours/P51/BlankoNet/WebContent/WEB-INF/lib/jstl.jar differ diff --git a/cours/P51/BlankoNet/WebContent/WEB-INF/lib/standard.jar b/cours/P51/BlankoNet/WebContent/WEB-INF/lib/standard.jar new file mode 100644 index 0000000..bc528ac Binary files /dev/null and b/cours/P51/BlankoNet/WebContent/WEB-INF/lib/standard.jar differ diff --git a/cours/P51/BlankoNet/WebContent/WEB-INF/lib/tld/c.tld b/cours/P51/BlankoNet/WebContent/WEB-INF/lib/tld/c.tld new file mode 100644 index 0000000..22698c9 --- /dev/null +++ b/cours/P51/BlankoNet/WebContent/WEB-INF/lib/tld/c.tld @@ -0,0 +1,563 @@ + + + + + JSTL 1.1 core library + JSTL core + 1.1 + c + http://java.sun.com/jsp/jstl/core + + + + Provides core validation features for JSTL tags. + + + org.apache.taglibs.standard.tlv.JstlCoreTLV + + + + + + Catches any Throwable that occurs in its body and optionally + exposes it. + + catch + org.apache.taglibs.standard.tag.common.core.CatchTag + JSP + + +Name of the exported scoped variable for the +exception thrown from a nested action. The type of the +scoped variable is the type of the exception thrown. + + var + false + false + + + + + + Simple conditional tag that establishes a context for + mutually exclusive conditional operations, marked by + <when> and <otherwise> + + choose + org.apache.taglibs.standard.tag.common.core.ChooseTag + JSP + + + + + Simple conditional tag, which evalutes its body if the + supplied condition is true and optionally exposes a Boolean + scripting variable representing the evaluation of this condition + + if + org.apache.taglibs.standard.tag.rt.core.IfTag + JSP + + +The test condition that determines whether or +not the body content should be processed. + + test + true + true + boolean + + + +Name of the exported scoped variable for the +resulting value of the test condition. The type +of the scoped variable is Boolean. + + var + false + false + + + +Scope for var. + + scope + false + false + + + + + + Retrieves an absolute or relative URL and exposes its contents + to either the page, a String in 'var', or a Reader in 'varReader'. + + import + org.apache.taglibs.standard.tag.rt.core.ImportTag + org.apache.taglibs.standard.tei.ImportTEI + JSP + + +The URL of the resource to import. + + url + true + true + + + +Name of the exported scoped variable for the +resource's content. The type of the scoped +variable is String. + + var + false + false + + + +Scope for var. + + scope + false + false + + + +Name of the exported scoped variable for the +resource's content. The type of the scoped +variable is Reader. + + varReader + false + false + + + +Name of the context when accessing a relative +URL resource that belongs to a foreign +context. + + context + false + true + + + +Character encoding of the content at the input +resource. + + charEncoding + false + true + + + + + + The basic iteration tag, accepting many different + collection types and supporting subsetting and other + functionality + + forEach + org.apache.taglibs.standard.tag.rt.core.ForEachTag + org.apache.taglibs.standard.tei.ForEachTEI + JSP + + +Collection of items to iterate over. + + items + false + true + java.lang.Object + + + +If items specified: +Iteration begins at the item located at the +specified index. First item of the collection has +index 0. +If items not specified: +Iteration begins with index set at the value +specified. + + begin + false + true + int + + + +If items specified: +Iteration ends at the item located at the +specified index (inclusive). +If items not specified: +Iteration ends when index reaches the value +specified. + + end + false + true + int + + + +Iteration will only process every step items of +the collection, starting with the first one. + + step + false + true + int + + + +Name of the exported scoped variable for the +current item of the iteration. This scoped +variable has nested visibility. Its type depends +on the object of the underlying collection. + + var + false + false + + + +Name of the exported scoped variable for the +status of the iteration. Object exported is of type +javax.servlet.jsp.jstl.core.LoopTagStatus. This scoped variable has nested +visibility. + + varStatus + false + false + + + + + + Iterates over tokens, separated by the supplied delimeters + + forTokens + org.apache.taglibs.standard.tag.rt.core.ForTokensTag + JSP + + +String of tokens to iterate over. + + items + true + true + java.lang.String + + + +The set of delimiters (the characters that +separate the tokens in the string). + + delims + true + true + java.lang.String + + + +Iteration begins at the token located at the +specified index. First token has index 0. + + begin + false + true + int + + + +Iteration ends at the token located at the +specified index (inclusive). + + end + false + true + int + + + +Iteration will only process every step tokens +of the string, starting with the first one. + + step + false + true + int + + + +Name of the exported scoped variable for the +current item of the iteration. This scoped +variable has nested visibility. + + var + false + false + + + +Name of the exported scoped variable for the +status of the iteration. Object exported is of +type +javax.servlet.jsp.jstl.core.LoopTag +Status. This scoped variable has nested +visibility. + + varStatus + false + false + + + + + + Like <%= ... >, but for expressions. + + out + org.apache.taglibs.standard.tag.rt.core.OutTag + JSP + + +Expression to be evaluated. + + value + true + true + + + +Default value if the resulting value is null. + + default + false + true + + + +Determines whether characters <,>,&,'," in the +resulting string should be converted to their +corresponding character entity codes. Default value is +true. + + escapeXml + false + true + + + + + + + Subtag of <choose> that follows <when> tags + and runs only if all of the prior conditions evaluated to + 'false' + + otherwise + org.apache.taglibs.standard.tag.common.core.OtherwiseTag + JSP + + + + + Adds a parameter to a containing 'import' tag's URL. + + param + org.apache.taglibs.standard.tag.rt.core.ParamTag + JSP + + +Name of the query string parameter. + + name + true + true + + + +Value of the parameter. + + value + false + true + + + + + + Redirects to a new URL. + + redirect + org.apache.taglibs.standard.tag.rt.core.RedirectTag + JSP + + +The URL of the resource to redirect to. + + url + false + true + + + +Name of the context when redirecting to a relative URL +resource that belongs to a foreign context. + + context + false + true + + + + + + Removes a scoped variable (from a particular scope, if specified). + + remove + org.apache.taglibs.standard.tag.common.core.RemoveTag + empty + + +Name of the scoped variable to be removed. + + var + true + false + + + +Scope for var. + + scope + false + false + + + + + + Sets the result of an expression evaluation in a 'scope' + + set + org.apache.taglibs.standard.tag.rt.core.SetTag + JSP + + +Name of the exported scoped variable to hold the value +specified in the action. The type of the scoped variable is +whatever type the value expression evaluates to. + + var + false + false + + + +Expression to be evaluated. + + value + false + true + + + +Target object whose property will be set. Must evaluate to +a JavaBeans object with setter property property, or to a +java.util.Map object. + + target + false + true + + + +Name of the property to be set in the target object. + + property + false + true + + + +Scope for var. + + scope + false + false + + + + + + Creates a URL with optional query parameters. + + url + org.apache.taglibs.standard.tag.rt.core.UrlTag + JSP + + +Name of the exported scoped variable for the +processed url. The type of the scoped variable is +String. + + var + false + false + + + +Scope for var. + + scope + false + false + + + +URL to be processed. + + value + false + true + + + +Name of the context when specifying a relative URL +resource that belongs to a foreign context. + + context + false + true + + + + + + Subtag of <choose> that includes its body if its + condition evalutes to 'true' + + when + org.apache.taglibs.standard.tag.rt.core.WhenTag + JSP + + +The test condition that determines whether or not the +body content should be processed. + + test + true + true + boolean + + + + diff --git a/cours/P51/BlankoNet/WebContent/WEB-INF/lib/tld/fmt.tld b/cours/P51/BlankoNet/WebContent/WEB-INF/lib/tld/fmt.tld new file mode 100644 index 0000000..3b9a54a --- /dev/null +++ b/cours/P51/BlankoNet/WebContent/WEB-INF/lib/tld/fmt.tld @@ -0,0 +1,671 @@ + + + + + JSTL 1.1 i18n-capable formatting library + JSTL fmt + 1.1 + fmt + http://java.sun.com/jsp/jstl/fmt + + + + Provides core validation features for JSTL tags. + + + org.apache.taglibs.standard.tlv.JstlFmtTLV + + + + + + Sets the request character encoding + + requestEncoding + org.apache.taglibs.standard.tag.rt.fmt.RequestEncodingTag + empty + + +Name of character encoding to be applied when +decoding request parameters. + + value + false + true + + + + + + Stores the given locale in the locale configuration variable + + setLocale + org.apache.taglibs.standard.tag.rt.fmt.SetLocaleTag + empty + + +A String value is interpreted as the +printable representation of a locale, which +must contain a two-letter (lower-case) +language code (as defined by ISO-639), +and may contain a two-letter (upper-case) +country code (as defined by ISO-3166). +Language and country codes must be +separated by hyphen (-) or underscore +(_). + + value + true + true + + + +Vendor- or browser-specific variant. +See the java.util.Locale javadocs for +more information on variants. + + variant + false + true + + + +Scope of the locale configuration variable. + + scope + false + false + + + + + + Specifies the time zone for any time formatting or parsing actions + nested in its body + + timeZone + org.apache.taglibs.standard.tag.rt.fmt.TimeZoneTag + JSP + + +The time zone. A String value is interpreted as +a time zone ID. This may be one of the time zone +IDs supported by the Java platform (such as +"America/Los_Angeles") or a custom time zone +ID (such as "GMT-8"). See +java.util.TimeZone for more information on +supported time zone formats. + + value + true + true + + + + + + Stores the given time zone in the time zone configuration variable + + setTimeZone + org.apache.taglibs.standard.tag.rt.fmt.SetTimeZoneTag + empty + + +The time zone. A String value is interpreted as +a time zone ID. This may be one of the time zone +IDs supported by the Java platform (such as +"America/Los_Angeles") or a custom time zone +ID (such as "GMT-8"). See java.util.TimeZone for +more information on supported time zone +formats. + + value + true + true + + + +Name of the exported scoped variable which +stores the time zone of type +java.util.TimeZone. + + var + false + false + + + +Scope of var or the time zone configuration +variable. + + scope + false + false + + + + + + Loads a resource bundle to be used by its tag body + + bundle + org.apache.taglibs.standard.tag.rt.fmt.BundleTag + JSP + + +Resource bundle base name. This is the bundle's +fully-qualified resource name, which has the same +form as a fully-qualified class name, that is, it uses +"." as the package component separator and does not +have any file type (such as ".class" or ".properties") +suffix. + + basename + true + true + + + +Prefix to be prepended to the value of the message +key of any nested <fmt:message> action. + + prefix + false + true + + + + + + Loads a resource bundle and stores it in the named scoped variable or + the bundle configuration variable + + setBundle + org.apache.taglibs.standard.tag.rt.fmt.SetBundleTag + empty + + +Resource bundle base name. This is the bundle's +fully-qualified resource name, which has the same +form as a fully-qualified class name, that is, it uses +"." as the package component separator and does not +have any file type (such as ".class" or ".properties") +suffix. + + basename + true + true + + + +Name of the exported scoped variable which stores +the i18n localization context of type +javax.servlet.jsp.jstl.fmt.LocalizationC +ontext. + + var + false + false + + + +Scope of var or the localization context +configuration variable. + + scope + false + false + + + + + + Maps key to localized message and performs parametric replacement + + message + org.apache.taglibs.standard.tag.rt.fmt.MessageTag + JSP + + +Message key to be looked up. + + key + false + true + + + +Localization context in whose resource +bundle the message key is looked up. + + bundle + false + true + + + +Name of the exported scoped variable +which stores the localized message. + + var + false + false + + + +Scope of var. + + scope + false + false + + + + + + Supplies an argument for parametric replacement to a containing + <message> tag + + param + org.apache.taglibs.standard.tag.rt.fmt.ParamTag + JSP + + +Argument used for parametric replacement. + + value + false + true + + + + + + Formats a numeric value as a number, currency, or percentage + + formatNumber + org.apache.taglibs.standard.tag.rt.fmt.FormatNumberTag + JSP + + +Numeric value to be formatted. + + value + false + true + + + +Specifies whether the value is to be +formatted as number, currency, or +percentage. + + type + false + true + + + +Custom formatting pattern. + + pattern + false + true + + + +ISO 4217 currency code. Applied only +when formatting currencies (i.e. if type is +equal to "currency"); ignored otherwise. + + currencyCode + false + true + + + +Currency symbol. Applied only when +formatting currencies (i.e. if type is equal +to "currency"); ignored otherwise. + + currencySymbol + false + true + + + +Specifies whether the formatted output +will contain any grouping separators. + + groupingUsed + false + true + + + +Maximum number of digits in the integer +portion of the formatted output. + + maxIntegerDigits + false + true + + + +Minimum number of digits in the integer +portion of the formatted output. + + minIntegerDigits + false + true + + + +Maximum number of digits in the +fractional portion of the formatted output. + + maxFractionDigits + false + true + + + +Minimum number of digits in the +fractional portion of the formatted output. + + minFractionDigits + false + true + + + +Name of the exported scoped variable +which stores the formatted result as a +String. + + var + false + false + + + +Scope of var. + + scope + false + false + + + + + + Parses the string representation of a number, currency, or percentage + + parseNumber + org.apache.taglibs.standard.tag.rt.fmt.ParseNumberTag + JSP + + +String to be parsed. + + value + false + true + + + +Specifies whether the string in the value +attribute should be parsed as a number, +currency, or percentage. + + type + false + true + + + +Custom formatting pattern that determines +how the string in the value attribute is to be +parsed. + + pattern + false + true + + + +Locale whose default formatting pattern (for +numbers, currencies, or percentages, +respectively) is to be used during the parse +operation, or to which the pattern specified +via the pattern attribute (if present) is +applied. + + parseLocale + false + true + + + +Specifies whether just the integer portion of +the given value should be parsed. + + integerOnly + false + true + + + +Name of the exported scoped variable which +stores the parsed result (of type +java.lang.Number). + + var + false + false + + + +Scope of var. + + scope + false + false + + + + + + Formats a date and/or time using the supplied styles and pattern + + formatDate + org.apache.taglibs.standard.tag.rt.fmt.FormatDateTag + empty + + +Date and/or time to be formatted. + + value + true + true + + + +Specifies whether the time, the date, or both +the time and date components of the given +date are to be formatted. + + type + false + true + + + +Predefined formatting style for dates. Follows +the semantics defined in class +java.text.DateFormat. Applied only +when formatting a date or both a date and +time (i.e. if type is missing or is equal to +"date" or "both"); ignored otherwise. + + dateStyle + false + true + + + +Predefined formatting style for times. Follows +the semantics defined in class +java.text.DateFormat. Applied only +when formatting a time or both a date and +time (i.e. if type is equal to "time" or "both"); +ignored otherwise. + + timeStyle + false + true + + + +Custom formatting style for dates and times. + + pattern + false + true + + + +Time zone in which to represent the formatted +time. + + timeZone + false + true + + + +Name of the exported scoped variable which +stores the formatted result as a String. + + var + false + false + + + +Scope of var. + + scope + false + false + + + + + + Parses the string representation of a date and/or time + + parseDate + org.apache.taglibs.standard.tag.rt.fmt.ParseDateTag + JSP + + +Date string to be parsed. + + value + false + true + + + +Specifies whether the date string in the +value attribute is supposed to contain a +time, a date, or both. + + type + false + true + + + +Predefined formatting style for days +which determines how the date +component of the date string is to be +parsed. Applied only when formatting a +date or both a date and time (i.e. if type +is missing or is equal to "date" or "both"); +ignored otherwise. + + dateStyle + false + true + + + +Predefined formatting styles for times +which determines how the time +component in the date string is to be +parsed. Applied only when formatting a +time or both a date and time (i.e. if type +is equal to "time" or "both"); ignored +otherwise. + + timeStyle + false + true + + + +Custom formatting pattern which +determines how the date string is to be +parsed. + + pattern + false + true + + + +Time zone in which to interpret any time +information in the date string. + + timeZone + false + true + + + +Locale whose predefined formatting styles +for dates and times are to be used during +the parse operation, or to which the +pattern specified via the pattern +attribute (if present) is applied. + + parseLocale + false + true + + + +Name of the exported scoped variable in +which the parsing result (of type +java.util.Date) is stored. + + var + false + false + + + +Scope of var. + + scope + false + false + + + + diff --git a/cours/P51/BlankoNet/WebContent/WEB-INF/web.xml b/cours/P51/BlankoNet/WebContent/WEB-INF/web.xml new file mode 100644 index 0000000..a08edc4 --- /dev/null +++ b/cours/P51/BlankoNet/WebContent/WEB-INF/web.xml @@ -0,0 +1,45 @@ + + + + BlankoNet + + + + + Profile + First Servlet + Octopus + + + Faces Servlet + + javax.faces.webapp.FacesServlet + 1 + + + First Servlet + /core + + + Faces Servlet + /faces/* + + + + http://java.sun.com/jstl/core + /WEB-INF/tld/c.tld + + + + index.html + index.htm + index.jsp + default.html + default.htm + default.jsp + + + jpg + image/jpeg + + diff --git a/cours/P51/BlankoNet/WebContent/brownies.css b/cours/P51/BlankoNet/WebContent/brownies.css new file mode 100644 index 0000000..38735fa --- /dev/null +++ b/cours/P51/BlankoNet/WebContent/brownies.css @@ -0,0 +1,129 @@ +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%; +} \ No newline at end of file diff --git a/cours/P51/BlankoNet/WebContent/images/bas-contenu-bg.jpg b/cours/P51/BlankoNet/WebContent/images/bas-contenu-bg.jpg new file mode 100644 index 0000000..87f0003 Binary files /dev/null and b/cours/P51/BlankoNet/WebContent/images/bas-contenu-bg.jpg differ diff --git a/cours/P51/BlankoNet/WebContent/images/bg-header.jpg b/cours/P51/BlankoNet/WebContent/images/bg-header.jpg new file mode 100644 index 0000000..f6749e4 Binary files /dev/null and b/cours/P51/BlankoNet/WebContent/images/bg-header.jpg differ diff --git a/cours/P51/BlankoNet/WebContent/images/bottom-side-bloc.jpg b/cours/P51/BlankoNet/WebContent/images/bottom-side-bloc.jpg new file mode 100644 index 0000000..7539a99 Binary files /dev/null and b/cours/P51/BlankoNet/WebContent/images/bottom-side-bloc.jpg differ diff --git a/cours/P51/BlankoNet/WebContent/images/centre-contenu-bg.jpg b/cours/P51/BlankoNet/WebContent/images/centre-contenu-bg.jpg new file mode 100644 index 0000000..71e9482 Binary files /dev/null and b/cours/P51/BlankoNet/WebContent/images/centre-contenu-bg.jpg differ diff --git a/cours/P51/BlankoNet/WebContent/images/centre-side-bloc.jpg b/cours/P51/BlankoNet/WebContent/images/centre-side-bloc.jpg new file mode 100644 index 0000000..3e21880 Binary files /dev/null and b/cours/P51/BlankoNet/WebContent/images/centre-side-bloc.jpg differ diff --git a/cours/P51/BlankoNet/WebContent/images/h2-1.jpg b/cours/P51/BlankoNet/WebContent/images/h2-1.jpg new file mode 100644 index 0000000..d3f3b4f Binary files /dev/null and b/cours/P51/BlankoNet/WebContent/images/h2-1.jpg differ diff --git a/cours/P51/BlankoNet/WebContent/images/h2-2.jpg b/cours/P51/BlankoNet/WebContent/images/h2-2.jpg new file mode 100644 index 0000000..75b0f71 Binary files /dev/null and b/cours/P51/BlankoNet/WebContent/images/h2-2.jpg differ diff --git a/cours/P51/BlankoNet/WebContent/images/logo.jpg b/cours/P51/BlankoNet/WebContent/images/logo.jpg new file mode 100644 index 0000000..e2dfcee Binary files /dev/null and b/cours/P51/BlankoNet/WebContent/images/logo.jpg differ diff --git a/cours/P51/BlankoNet/WebContent/images/menu-bg-1.jpg b/cours/P51/BlankoNet/WebContent/images/menu-bg-1.jpg new file mode 100644 index 0000000..35062c0 Binary files /dev/null and b/cours/P51/BlankoNet/WebContent/images/menu-bg-1.jpg differ diff --git a/cours/P51/BlankoNet/WebContent/images/menu-bg-2.jpg b/cours/P51/BlankoNet/WebContent/images/menu-bg-2.jpg new file mode 100644 index 0000000..09608e6 Binary files /dev/null and b/cours/P51/BlankoNet/WebContent/images/menu-bg-2.jpg differ diff --git a/cours/P51/BlankoNet/WebContent/images/menu-bg-3.jpg b/cours/P51/BlankoNet/WebContent/images/menu-bg-3.jpg new file mode 100644 index 0000000..e7ad292 Binary files /dev/null and b/cours/P51/BlankoNet/WebContent/images/menu-bg-3.jpg differ diff --git a/cours/P51/BlankoNet/WebContent/images/menu-bg-4.jpg b/cours/P51/BlankoNet/WebContent/images/menu-bg-4.jpg new file mode 100644 index 0000000..a3e0371 Binary files /dev/null and b/cours/P51/BlankoNet/WebContent/images/menu-bg-4.jpg differ diff --git a/cours/P51/BlankoNet/WebContent/images/side-li.jpg b/cours/P51/BlankoNet/WebContent/images/side-li.jpg new file mode 100644 index 0000000..6ed3732 Binary files /dev/null and b/cours/P51/BlankoNet/WebContent/images/side-li.jpg differ diff --git a/cours/P51/BlankoNet/WebContent/images/top-contenu-bg.jpg b/cours/P51/BlankoNet/WebContent/images/top-contenu-bg.jpg new file mode 100644 index 0000000..6444529 Binary files /dev/null and b/cours/P51/BlankoNet/WebContent/images/top-contenu-bg.jpg differ diff --git a/cours/P51/BlankoNet/WebContent/images/top-side-bloc.jpg b/cours/P51/BlankoNet/WebContent/images/top-side-bloc.jpg new file mode 100644 index 0000000..91d201c Binary files /dev/null and b/cours/P51/BlankoNet/WebContent/images/top-side-bloc.jpg differ diff --git a/cours/P51/BlankoNet/WebContent/index.jsp b/cours/P51/BlankoNet/WebContent/index.jsp new file mode 100644 index 0000000..f68b394 --- /dev/null +++ b/cours/P51/BlankoNet/WebContent/index.jsp @@ -0,0 +1,112 @@ + + + + + +BlankoNet + + + + + +
+
+ + +
+
+ +

Tation minim

+

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.

+

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.

+ +

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.

+ +

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.

+ +

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.

+ +

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.

+ + +

Tation minim

+

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.

+

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.

+ +

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.

+
+
+

Design by wooki

+
+
+
+ + \ No newline at end of file diff --git a/cours/P51/BlankoNet/WebContent/index.jsp.bak b/cours/P51/BlankoNet/WebContent/index.jsp.bak new file mode 100644 index 0000000..ec1339f --- /dev/null +++ b/cours/P51/BlankoNet/WebContent/index.jsp.bak @@ -0,0 +1,49 @@ + + + + +<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> +<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%> + +BlankoNet + + + +
+

BlankoNet : réseau social de Blanko

+
+ +
+

Le BlankoNet tend à devenir un réseau social très primé au sein de gnagna ...

+

+Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec in nisl sed neque cursus pharetra. Praesent laoreet odio et sem. Praesent vel justo vitae quam vestibulum mollis. Aliquam erat volutpat. Duis in risus nec diam gravida adipiscing. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Aliquam dolor nisl, tincidunt ac, egestas ut, ullamcorper id, ligula. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc et pede. Curabitur eget odio molestie felis aliquam tempus. Aliquam ultricies blandit lectus. Suspendisse consequat libero eget lectus. Sed mi. Donec enim. Morbi justo urna, bibendum fermentum, rhoncus eget, dapibus at, lacus. Phasellus consectetur tellus vel nisl. Donec tortor. Donec metus tellus, egestas non, pretium nec, convallis ac, turpis. +

+

+Ut suscipit sem nec urna. Pellentesque sagittis. Integer porta ullamcorper diam. Etiam ut arcu id lorem consequat porta. Pellentesque ultrices volutpat orci. Phasellus vehicula, augue id ornare semper, ligula odio fringilla nunc, sit amet fringilla lacus ligula ut lorem. Sed purus tellus, cursus vitae, euismod ac, volutpat non, velit. Nulla non leo. Praesent et elit nec enim feugiat fermentum. Maecenas eu dui. Donec pede odio, gravida non, ultricies condimentum, fermentum vel, lacus. Proin fermentum pede id sapien. Aenean eu ante sed ligula congue hendrerit. + +

+

+Phasellus rutrum diam nec risus. Nulla hendrerit ultricies elit. In adipiscing gravida nisi. Donec aliquam luctus mi. Cras convallis mauris id ligula. Sed turpis diam, ultricies nec, vulputate in, adipiscing gravida, odio. In tincidunt pede eget felis. Praesent purus dui, sodales in, iaculis eget, ultricies commodo, nisi. Etiam at justo eu ligula tincidunt sodales. Praesent ornare, neque quis eleifend vulputate, odio mauris posuere augue, eu elementum enim ligula eget mi. Donec porta. Fusce sit amet nibh. Nam cursus fermentum justo. Nullam vitae leo. Phasellus egestas. Pellentesque mattis risus a velit bibendum commodo. +

+

+Vestibulum adipiscing, orci eget consequat suscipit, risus massa gravida massa, at viverra arcu ligula sed sem. Etiam cursus, sapien nec facilisis sollicitudin, odio lacus adipiscing diam, eget interdum urna lorem ut purus. Suspendisse dolor justo, congue sit amet, viverra et, consequat eget, erat. Nulla sagittis, ante et placerat eleifend, nisl pede dictum lectus, mollis suscipit felis quam id enim. Nulla lorem nisi, tempor ultrices, mattis sed, ullamcorper in, sapien. Praesent consectetur faucibus orci. Nulla pellentesque imperdiet justo. Nunc interdum, risus vulputate iaculis eleifend, turpis tellus suscipit libero, nec dictum nisi tellus in justo. Maecenas sit amet velit. Proin malesuada, nunc nec vulputate commodo, magna libero iaculis est, nec mollis sapien odio iaculis ante. Nullam sit amet magna. Proin nisl. Donec in lectus. In lobortis erat non nulla. Phasellus et tellus quis lorem dapibus sollicitudin. Morbi massa leo, imperdiet luctus, bibendum sit amet, tincidunt non, massa. Sed pede tellus, feugiat nec, pharetra ut, consectetur eget, leo. Nulla tortor dolor, luctus vel, sagittis id, elementum a, massa. Etiam eget ante sed tortor vulputate luctus. Vestibulum purus sem, dignissim a, egestas a, iaculis vitae, libero. +

+

+In elit. Nulla iaculis augue. Fusce sed velit adipiscing eros ullamcorper vulputate. Integer lobortis risus sed neque. Duis tincidunt mollis purus. Nullam venenatis, metus sit amet rutrum fermentum, enim metus mollis erat, et volutpat justo quam sit amet turpis. Quisque congue pulvinar nunc. Phasellus at justo. Praesent elit. Cras pede. Cras nisi ligula, scelerisque id, condimentum non, blandit vitae, dui. Sed mi arcu, ultricies quis, vulputate sit amet, auctor non, nulla. +

+
+ +
Propulsé par JavaEE sur Tomcat 6.0 à l'aide d'Eclipse JavaEE.
+ + \ No newline at end of file diff --git a/cours/P51/BlankoNet/WebContent/logo.jpg b/cours/P51/BlankoNet/WebContent/logo.jpg new file mode 100644 index 0000000..e2dfcee Binary files /dev/null and b/cours/P51/BlankoNet/WebContent/logo.jpg differ diff --git a/cours/P51/BlankoNet/WebContent/social.css b/cours/P51/BlankoNet/WebContent/social.css new file mode 100644 index 0000000..61eb5f5 --- /dev/null +++ b/cours/P51/BlankoNet/WebContent/social.css @@ -0,0 +1,222 @@ +@CHARSET "UTF-8"; +body { + margin: 0 ; + padding: 0 ; + text-align : center ; + background : #ECE9D8 ; + font-family : tahoma, arial ; + font-size : 0.7em ; + color : #666666 ; +} + +img { + border : none ; +} + +#header { + position : relative ; + height : 197px ; + background : url(images/bg-header.jpg) repeat-x ; +} + +#header h1 { + position : absolute ; + margin : 0; + padding : 0; + top : 20px; + left : -10px; + height : 98px; + width : 190px ; + background : url(images/logo.jpg) no-repeat ; +} + +#header h1 span { + position : absolute ; + top : -9999px ; + left : -9999px ; +} + +#header .centrage { + position : relative ; + width : 754px ; + margin : 0 auto ; + height : 197px ; +} + +#header .centrage ul { + margin : 0; + padding : 0; + list-style : none ; + position : absolute ; + right : 0 ; + bottom : 4px ; +} + +#header .centrage li { + float : left ; +} + +#header .centrage li a { + display : block ; + height : 30px ; + line-height : 30px ; + width : auto ; + padding : 0 10px ; + margin : 0 0 0 5px ; + text-decoration : none ; + color : #fff ; + text-transform : uppercase ; +} + +#header .centrage li a:hover { + color : #ccc ; +} + +#header .centrage li #home { + background : url(images/menu-bg-1.jpg) repeat-x ; +} + +#header .centrage li #about { + background : url(images/menu-bg-2.jpg) repeat-x ; +} + +#header .centrage li #link { + background : url(images/menu-bg-3.jpg) repeat-x ; +} + +#header .centrage li #contact { + background : url(images/menu-bg-4.jpg) repeat-x ; +} + +/* CONTENEUR GENERAL + *******************************************************/ + +#content { + text-align : left ; + width : 817px ; + margin : 0 auto ; + padding : 20px 0 0 0 ; +} + +/* SIDE + *******************************************************/ + +#side { + float : left ; + width : 215px ; + padding : 0 ; +} + +#side h2 { + font-size : 0.8em ; + margin : 0 0 10px 0 ; + padding : 0 0 0 10px ; + color : #fff ; + height : 22px ; + line-height : 22px ; +} + +#side h2#categories { + background : url(images/h2-1.jpg) no-repeat ; +} + +#side h2#articles { + background : url(images/h2-2.jpg) no-repeat ; +} + +#side ul { + margin : 0 ; + padding : 0 ; + background : url(images/centre-side-bloc.jpg) repeat-y ; + padding : 5px 10px 5px 15px ; + list-style : none ; +} + +#side li { + padding : 0 0 0 20px ; + margin : 5px 0 0 0 ; + background : url(images/side-li.jpg) left no-repeat ; +} + +#side li a { + text-decoration : none ; + color : #4D4F50 ; +} + +#side li a:hover { +text-decoration : underline ; +} + +#side img { + border : 0 ; +} + +#side p { + margin : 5px 0 5px 0 ; + padding : 0 ; +} + +#side .side-bloc { + background : url(images/top-side-bloc.jpg) no-repeat ; +} + +#side .bottom-side-bloc { + background : url(images/bottom-side-bloc.jpg) left top no-repeat ; + height : 13px ; +} + +/* CONTENU + *******************************************************/ + +#contenu { + float : left ; + width : 592px ; + padding : 0; + background : url(images/top-contenu-bg.jpg) top no-repeat ; + font-size : 115%; +} + +#bg-centre-contenu { + background : url(images/centre-contenu-bg.jpg) repeat-y ; + padding : 0 0 40px 0 ; +} + +#bg-bottom-contenu { + position : relative ; + height : 83px ; + background : url(images/bas-contenu-bg.jpg) no-repeat ; +} + +#bg-bottom-contenu p { + position : absolute ; + right : -6px ; + top : 5px ; + font-size : 80% ; + color : #fff ; + margin : 0 ; + padding : 0 ; +} + +#bg-bottom-contenu a { + text-decoration : none ; + color : #fff ; +} + +#contenu a { + text-decoration : none ; +} + +#contenu a:hover { + text-decoration : underline ; +} + +#contenu p{ + margin : 0 ; + padding : 5px 20px ; +} + +#contenu h2 { + margin : 0 ; + padding : 20px 0 10px 20px ; + color : #669900 ; +} diff --git a/cours/P51/BlankoNet/build/classes/Octopus.class b/cours/P51/BlankoNet/build/classes/Octopus.class new file mode 100644 index 0000000..4718810 Binary files /dev/null and b/cours/P51/BlankoNet/build/classes/Octopus.class differ diff --git a/cours/P51/BlankoNet/src/Octopus.java b/cours/P51/BlankoNet/src/Octopus.java new file mode 100644 index 0000000..155c6d1 --- /dev/null +++ b/cours/P51/BlankoNet/src/Octopus.java @@ -0,0 +1,65 @@ + + +import java.io.IOException; +import java.util.Map; + +import javax.servlet.RequestDispatcher; +import javax.servlet.ServletContext; +import javax.servlet.ServletException; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; + +/** + * Servlet implementation class for Servlet: Profile + * + */ + public class Octopus extends javax.servlet.http.HttpServlet implements javax.servlet.Servlet { + static final long serialVersionUID = 1L; + + /* (non-Java-doc) + * @see javax.servlet.http.HttpServlet#HttpServlet() + */ + public Octopus() { + super(); + } + + /* (non-Java-doc) + * @see javax.servlet.http.HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response) + */ + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + // TODO Auto-generated method stub + String uri; + String base; + String call; + uri = request.getRequestURI(); + base= request.getContextPath(); + + String tableau[] = uri.split("/"); + if(tableau[tableau.length - 1].isEmpty()) { + System.out.println("erreur"); + } + else { + call = tableau[2]; + System.out.println("Chemin: " + call); + } + + Map parameterList; + parameterList = request.getParameterMap(); + if(parameterList.size() > 0){ + System.out.println(request.getParameter("nom")); + } + + System.out.println("Base du site: " + base); + + ServletContext ctx = getServletContext(); + RequestDispatcher rd = ctx.getRequestDispatcher("/index.jsp"); + rd.forward(request,response); + } + + /* (non-Java-doc) + * @see javax.servlet.http.HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response) + */ + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + // TODO Auto-generated method stub + } +} \ No newline at end of file