1 / 13

Presentation JEE - Annuaire

CASTOR - STRIPES. Presentation JEE - Annuaire. Benzakoun Laurent – Charton Florent – Ficheux Alexandre. Plan. Introduction Castor Stripes Interaction Stripes & Castor Etude de cas : Annuaire Conclusion. Castor. Configuration Inclusion de librairies

kaiser
Télécharger la présentation

Presentation JEE - Annuaire

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. CASTOR - STRIPES Presentation JEE - Annuaire Benzakoun Laurent – Charton Florent – Ficheux Alexandre

  2. Plan • Introduction • Castor • Stripes • Interaction Stripes & Castor • Etude de cas : Annuaire • Conclusion

  3. Castor • Configuration • Inclusion de librairies • Création de fichiers de configuration en xml • jdo-conf.xml : connexion BDD • mapping.xml : POJO / BDD

  4. Mapping POJO/BDD

  5. Castor • Fonctionnement • Langage SQL propre à Castor : OQL • Mélange de langage SQL et langage objet • Manipulation directe d’objets • CRUDE

  6. Castor • Avantages • Langage de requête simple • Manipulation d’objets simple • Inconvénients • Peu de documentation • Peu d’exemples • Site d’IBM • Prise en main assez longue

  7. Stripes • Configuration • Inclusion de librairies • Configuration de Stripes dans web.xml

  8. Stripes • Fonctionnement • ActionBean • Objet représentant le bean et l’action a exécuter • Fonctionnement par annotation • URL( @URLBINDING(‘login.action’) ) • Vérification de champs ( @Validate = TRUE ) • JSP • Taglibspeciale • Utilisation de JSTL avec les actionbean

  9. Stripes • Submit d’action • Annotation pour une action par défaut • @defaultHandler • Objet Resolution • Forward et Redirect • Plusieurs actions pour une même actionBean • nom de la méthode <-> nom du bouton de submit

  10. Stripes • Avantages • Bonne documentation • JAVADOC • Stripes • TaglibStripes • Exemples sur le site du framework • Prise en main facile • Peu de fichiers de configuration • Inconvénient • Aucun 

  11. Interaction Stripes/Castor • Dérivation de l’actionContext • Objet représentant la requête • HttpServletRequest • HttpServletResponse • Modification du web.xml • Indique la classe a utiliser pour le context • Récupération de l’objet de Base de données

  12. Etude de cas : Annuaire Page d’accueil de l’annuaire

  13. Conclusion • Difficultés pour la prise en main de Castor • Documentation Stripes complète • Frameworks simples d’utilisation après prise en main • Questions

More Related