Brazil + JDBC Juin 2001, [email protected]
|
|
|
- Mary Barton
- 9 years ago
- Views:
Transcription
1 Brazil + JDBC Juin 2001, [email protected] version du 26 Mai 2003 : JDBC-SQL et Brazil pré-requis : lecture de Tutorial JDBC de Sun
2 Bibliographie Brazil [Bra00] [Bra01] JDBC Le tutorial JDBC de Sun la base de données hypersonic Un tutorial SQL
3 Sommaire JDBC introduction succincte hypersonic Une base de données entièrement écrite en Java Sa mise en œuvre Brazil+JDBC HTTP <-> SQL SqlHandler SqlTemplate
4 Java/JDBC : principes Le tutorial JDBC de Sun, un pré-requis
5 Java/JDBC package java.sql Chargement du "driver" associé à la base classe Connection 1) établir une connexion avec la base classe Statement 2) engendre une instruction : syntaxe SQL classe ResultSet 3) exécution ResultSet rs = stmt.executequery("select * from.. ") puis rs.next() int res = stmt.executeupdate("insert into. ")
6 Hypersonic version Chargement du "driver" Class.forName("org.hsqldb.jdbcDriver"); établir une connexion : Connection con = DriverManager.getConnection( String url, String user, String password) quelles sont les url?, où est la base? Mémoire url = jdbc.hsqldb:. Fichier local url = jdbc.hsqldb:test Socket url = jdbc.hsqldb://localhost Web / HTTP url = jdbc.hsqldb:http//localhost/
7 Hypersonic,java/JDBC, suite Un exemple : Class.forName("org.hsqldb.jdbcDriver"); // driver jdbc con = DriverManager.getConnection( "jdbc:hsqldb: // url //ou "jdbc:hsqldb:la_base", "sa", // user ""); // password stmt = con.createstatement(); int res=stmt.executeupdate("create table lundi "); ResultSet rs =stmt.executequery("select * from lundi"); int res=stmt.executeupdate("insert into lundi ");
8 Commandes SQL : syntaxe CREATE TABLE name ( columndefinition [,...] ) columndefinition: column DataType [ [NOT] NULL] [PRIMARY KEY] DataType: { INTEGER DOUBLE VARCHAR DATE TIME... } SELECT [DISTINCT] { selectexpression table.* * } [,... ] [INTO newtable] FROM tablelist [WHERE Expression] [ORDER BY selectexpression [{ASC DESC}] [,...] ] [GROUP BY Expression [,...] ] [UNION [ALL] selectstatement] INSERT INTO table [ (column [,...] ) ] { VALUES(Expression [,...]) SelectStatement }
9 Hypersonic 1.6 Serveur Web : intranet/internet java cp hsqldb.jar org.hsqldb.webserver -port silent false -database LA_BASE Serveur socket : intranet java cp hsqldb.jar org.hsqldb.server -port 899 -silent false -database LA_BASE
10 Sources Java : 3 applications create : création d une table : nommée lundi insert : Insertion dans cette table select : lecture de cette table en commun : le chargement du Driver : String url ="jdbc:hsqldb:la_base"; //ou String url ="jdbc:hsqldb: Connection con; Statement stmt; try { Class.forName("org.hsqldb.jdbcDriver"); } catch(java.lang.classnotfoundexception e) { System.err.print("ClassNotFoundException: " + e.getmessage()); } con = DriverManager.getConnection(url,"sa",""); stmt = con.createstatement();
11 Exemple : create table try { String sql = "CREATE TABLE lundi ( " + "nom VARCHAR, " + "prenom VARCHAR, " + "e_mail VARCHAR, " + "sujet INTEGER) "; stmt.executeupdate(sql); stmt.close(); con.close(); } catch(sqlexception ex) {...
12 CreateLundi.java, au complet import java.sql.*; public class CreateLundi { public static void main(string[] args) { try { Class.forName("org.hsqldb.jdbcDriver"); } } Connection con = DriverManager.getConnection("jdbc:hsqldb:LA_BASE","sa",""); // ou "jdbc:hsqldb: Statement stmt = con.createstatement(); String sql = "CREATE TABLE Lundi ( " + "nom VARCHAR, " + "prenom VARCHAR, " + "e_mail VARCHAR, " + "sujet integer ) "; stmt.executeupdate(sql); stmt.close(); con.close(); } catch (Exception e){ System.err.println("Exception in createtables()"); System.err.println(e); }
13 À faire chez soi Copier/coller/compiler/exécuter le texte du transparent précedent : CreateLundi.java Démarrer le serveur web/hsql sur une autre machine ou dans un autre répertoire Modifier/compiler CreateLundi.java en conséquence Exécuter CreateLundi
14 Exemple de source Java : insert String sql = "insert into LUNDI " + "values('lambert', 'michel', " + " '<A HREF=\"mailto:[email protected]\">[email protected]</A>', 1)"); int res = stmt.executeupdate(sql); stmt.close(); con.close(); } catch(sqlexception ex) {...
15 InsertLundi.java import java.sql.*; public class InsertLundi{ public static void main(string[] args) { try {Class.forName("org.hsqldb.jdbcDriver"); Connection con = DriverManager.getConnection("jdbc:hsqldb:LA_BASE","sa",""); // ou "jdbc:hsqldb: Statement stmt = con.createstatement(); String sql= "insert into lundi values( " + " Lambert', michel', " + " <A HREF=\"mailto:[email protected]\">[email protected]</A>',1)"; stmt.executeupdate(sql); sql = "insert into Vendredi values( " + " Robleda', bruno', " + " <A HREF=\"mailto:[email protected] \">[email protected]</a>',1)"; stmt.executeupdate(sql); } } stmt.close(); con.close(); } catch (Exception e){ System.err.println("Exception in creattables()"); System.err.println(e); }
16 À faire chez soi Copier/coller/compiler/exécuter le texte du transparent précedent : InsertLundi.java Démarrer le serveur web/hsql sur une autre machine ou dans un autre répertoire Modifier/compiler InsertLundi.java en conséquence Exécuter InsertLundi
17 Exemple de source Java : select String sql = "select * from lundi"; ResultSet rs = stmt.executequery(sql); ResultSetMetaData meta = rs.getmetadata(); int columns = meta.getcolumncount(); while (rs.next()) { for(int i=1;i<=columns;i++){ System.out.println(rs.getString(meta.getColumnLabel(i))); } // for } // while stmt.close(); con.close(); } catch(sqlexception ex) {...
18 import java.sql.*; public class SelectLundi { public static void main(string[] args) { try { Class.forName("org.hsqldb.jdbcDriver"); SelectLundi.java Connection con = DriverManager.getConnection("jdbc:hsqldb:LA_BASE","sa",""); // ou "jdbc:hsqldb: Statement stmt = con.createstatement(); String sql = "select * from lundi"; ResultSet rs = stmt.executequery(sql); ResultSetMetaData meta = rs.getmetadata(); int columns = meta.getcolumncount(); } while (rs.next()) { for(int i=1;i<=columns;i++){ System.out.print(rs.getString(i) + " "); } System.out.println(); } // while stmt.close(); con.close(); } catch (Exception e){ System.err.println(e);}
19 À faire chez soi Copier/coller/compiler/exécuter le texte du transparent précedent : SelectLundi.java Démarrer le serveur web/hsql sur une autre machine ou dans un autre répertoire Modifier/compiler SelectLundi.java en conséquence Exécuter SelectLundi
20 Brazil Interface HTTP <-> SQL-JDBC
21 Serveur Brazil + SqlHandler HTTP1.1 1 request SqlHandler HTTP1.1 request ChainHandler 2 request FileHandler Serveur de requêtes
22 Le fichier de configuration main.class=sunlabs.brazil.server.chainhandler main.handlers=sql file # sql.class=cnam.sql.sqlhandler sql.name=/hypersonic/ # les paramètres jdbc du handler sql.driver=org.hsqldb.jdbcdriver sql.url=jdbc:hsqldb:la_base # ou sql.url=jdbc:hsqldb: sql.user=sa sql.password=
23 Structure de SqlHandler méthode init lecture des paramètres du fichier de configuration méthode respond paramètres query et update
24 Structure de SqlHandler.java,init public boolean init(server server, String prefix){ this.server = server; this.propsprefix = prefix; try { name = server.props.getproperty(propsprefix + "name"); driver = server.props.getproperty(propsprefix + "driver"); url = server.props.getproperty(propsprefix + "url"); user = server.props.getproperty(propsprefix + "user"); password = server.props.getproperty(propsprefix + "password"); } catch (Exception e1) {...return false;} try { Class.forName(driver); } catch(exception e) {...return false;} } return true;
25 SqlHandler respond public boolean respond(request request) throws IOException{ String urlprefix = request.props.getproperty(propsprefix, name); if (!request.url.startswith(urlprefix)) { server.log(server.log_informational, null,"not " + name + " prefix: " + request.url); return false; } Hashtable t = request.getquerydata(); String result; String query=null; Connection con=null; Statement stmt=null; try{ con = DriverManager.getConnection(url,user,password); stmt = con.createstatement(); // lecture des paramètres HTTP
26 SqlHandler respond suite // lecture des paramètres HTTP query = (String)t.get("query"); if (query!= null){ ResultSet rs = stmt.executequery(query); result = query + formattable(rs); } else { String update = (String)t.get("update"); if( update!= null){ int res = stmt.executeupdate(update); result = update + res; } else result = "unknown, only (query or update)"; } stmt.close(); con.close();.
27 SqlHandler : formattable public static String formattable(resultset rs) throws SQLException{ ResultSetMetaData meta = rs.getmetadata(); StringBuffer html = new StringBuffer(); html.append("<table border=2 BGCOLOR=\"#ffb0d8\">\r\n"); html.append("<caption><big><b>résultat</b><big></caption>\r\n"); int columns = meta.getcolumncount(); html.append("<tr BGCOLOR=\"#00fd00\">\r\n"); for(int i=1;i<=columns;i++){ html.append("<td><big><b>"+meta.getcolumnlabel(i)+ "</b></big></td>\r\n"); } // for html.append("</tr>\r\n");
28 SqlHandler : formattable suite... while (rs.next()) { html.append("<tr>\r\n"); for(int i=1;i<=columns;i++){ html.append("<td>\r\n"); html.append(" " + rs.getstring(meta.getcolumnlabel(i)) + "\r\n"); html.append("</td>\r\n"); } // for html.append("</tr>\r\n"); } // while html.append("</table>\r\n"); return html.tostring(); }
29 SqlHandler : le résultat
30 Serveur Brazil avec authentification HTTP1.1 1 request BasicAuthHandler HTTP1.1 request ChainHandler 2 request SqlHandler 3 request Serveur de requêtes FileHandler
31 Le fichier de configuration main.class=sunlabs.brazil.server.chainhandler main.handlers=auth sql file # auth.class=sunlabs.brazil.handler.basicauthhandler auth.prefix=/hypersonic/ auth.mapfile=credentials auth.session=account auth.realm=this server requires authentication auth.message=pas de SQL possible pour vous!!! # sql.class=sql.sqlhandler sql.name=/hypersonic/ sql.driver=org.hsql.jdbcdriver sql.url=jdbc:hsqldb:la_base sql.user=sa sql.password=
32 BasicAuthHandler : le résultat
33 Architecture possible FormHandler insertion en base de données SqlHandler interrogation, modification
34 FormHandler HTTP1.1 1 request HTTP1.1 request ChainHandler 2 request BasicAuthHandler 3 SqlHandler Serveur de requêtes request 4 FileHandler
35 Formulaire : FormHandler <FORM ACTION=" <INPUT TYPE=hidden name= "table" value= "Lundi"> <TABLE BORDER CELLPADDING="2">...
36 Structure de FormHandler méthode init : chargement du jdbcdriver méthode respond : Hashtable t = request.getquerydata(); String sql = "insert into " + (String)t.get("table") + " values(" + " " + (String)t.get("nom") + "," + " " + (String)t.get("prenom") + "," + " " + (String)t.get("e_mail") + ")"; int res = stmt.executeupdate(sql);
37 le fichier de configuration form.class=cnam.sql.formhandler form.name=/insert/ form.driver=org.hsqldb.jdbcdriver form.url=jdbc:hsqldb:la_base #ou form.url=jdbc:hsqldb: form.user=sa form.password=
38 Brazil + BSL Brazil et les Templates balises HTML, interprétées avant d être transmises <sql SqlTemplate <foreach et <if BSLTemplate <property PropsTemplate
39 Rappel BSL <! Le fichier TestSql.html <table border> <foreach name=a glob=*> <tr> <td><property a.name> </td> <td><property a.value> </td> <tr> </foreach> </table> Une table HTML : visualisation de server.props BSL : <if> <elseif> <else> </if> <foreach> </foreach> <property name=xxx> est remplacé par xxx
40 Exemple Accès aux propriétés du serveur (server.props) <html> la valeur log : <property log> la racine root : <property root> <tag>a href=<property name=test.url></tag> un_lien</a> <if name=liste.cnam_url.${field}.${index} match=
41 Usage de BSL : le résultat
42 SqlHandler / SqlTemplate <sql prefix=inscrit> select * from lundi</sql> #le fichier de configuration sql.class=sunlabs.brazil.template.templatehandler sql.templates= sunlabs.brazil.template.debugtemplate \ sunlabs.brazil.template.propstemplate \ sunlabs.brazil.sql.sqltemplate \ sunlabs.brazil.template.bsltemplate sql.driver=org.hsqldb.jdbcdriver sql.url=jdbc:hsqldb:la_base sql.sqlprefix=param param.user=sa param.password=
43 SqlTemplate + BSLTemplate <sql prefix=inscrit> SELECT * FROM lundi</sql> <TABLE border=2> <foreach name=index property=inscrit.rows > <tr> <foreach name=field list="nom PRENOM SUJET E_MAIL"> <td> <property name=inscrit.lundi.${field}.${index}> </td> </foreach> </tr> </foreach> </TABLE>
44 SqlTemplate : le résultat
45 <HTML><HEAD> <TITLE>SqlTemplate</TITLE></HEAD> <BODY><P>Test SqlTemplate, serveur Brazil, le 26 Mai 2003<P> <sql prefix=inscrit> SELECT * FROM lundi</sql> <debug apres la requete SQL: > <TABLE border=2> <tr> <foreach name=field list=" NOM PRENOM SUJET E_MAIL"> <td> <b><property name=field></b> </td> </foreach> </tr> <foreach name=index property=inscrit.rows > <tr> <foreach name=field list="nom PRENOM SUJET E_MAIL"> <td><property name=inscrit.lundi.${field}.${index}></td> </foreach> </tr> </foreach> </TABLE> <p> </BODY></HTML>
46 Conclusion
Thursday, February 7, 2013. DOM via PHP
DOM via PHP Plan PHP DOM PHP : Hypertext Preprocessor Langage de script pour création de pages Web dynamiques Un ficher PHP est un ficher HTML avec du code PHP
Java Server Pages and Java Beans
Java Server Pages and Java Beans Java server pages (JSP) and Java beans work together to create a web application. Java server pages are html pages that also contain regular Java code, which is included
TP : Système de messagerie - Fichiers properties - PrepareStatement
TP : Système de messagerie - Fichiers properties - PrepareStatement exelib.net Une société souhaite mettre en place un système de messagerie entre ses employés. Les travaux de l équipe chargée de l analyse
Database Access from a Programming Language: Database Access from a Programming Language
Database Access from a Programming Language: Java s JDBC Werner Nutt Introduction to Databases Free University of Bozen-Bolzano 2 Database Access from a Programming Language Two Approaches 1. Embedding
Database Access from a Programming Language:
Database Access from a Programming Language: Java s JDBC Werner Nutt Introduction to Databases Free University of Bozen-Bolzano 2 Database Access from a Programming Language Two Approaches 1. Embedding
Remote Method Invocation
1 / 22 Remote Method Invocation Jean-Michel Richer [email protected] http://www.info.univ-angers.fr/pub/richer M2 Informatique 2010-2011 2 / 22 Plan Plan 1 Introduction 2 RMI en détails
Chapter 9 Java and SQL. Wang Yang [email protected]
Chapter 9 Java and SQL Wang Yang [email protected] Outline Concern Data - File & IO vs. Database &SQL Database & SQL How Connect Java to SQL - Java Model for Database Java Database Connectivity (JDBC)
The JAVA Way: JDBC and SQLJ
The JAVA Way: JDBC and SQLJ David Toman School of Computer Science University of Waterloo Introduction to Databases CS348 David Toman (University of Waterloo) JDBC/SQLJ 1 / 21 The JAVA way to Access RDBMS
TP1 : Correction. Rappels : Stream, Thread et Socket TCP
Université Paris 7 M1 II Protocoles réseaux TP1 : Correction Rappels : Stream, Thread et Socket TCP Tous les programmes seront écrits en Java. 1. (a) Ecrire une application qui lit des chaines au clavier
Supplement IV.C: Tutorial for Oracle. For Introduction to Java Programming By Y. Daniel Liang
Supplement IV.C: Tutorial for Oracle For Introduction to Java Programming By Y. Daniel Liang This supplement covers the following topics: Connecting and Using Oracle Creating User Accounts Accessing Oracle
JDBC. It is connected by the Native Module of dependent form of h/w like.dll or.so. ex) OCI driver for local connection to Oracle
JDBC 4 types of JDBC drivers Type 1 : JDBC-ODBC bridge It is used for local connection. ex) 32bit ODBC in windows Type 2 : Native API connection driver It is connected by the Native Module of dependent
POB-JAVA Documentation
POB-JAVA Documentation 1 INTRODUCTION... 4 2 INSTALLING POB-JAVA... 5 Installation of the GNUARM compiler... 5 Installing the Java Development Kit... 7 Installing of POB-Java... 8 3 CONFIGURATION... 9
Licence Informatique Année 2005-2006. Exceptions
Université Paris 7 Java Licence Informatique Année 2005-2006 TD n 8 - Correction Exceptions Exercice 1 La méthode parseint est spécifiée ainsi : public static int parseint(string s) throws NumberFormatException
Java and Databases. COMP514 Distributed Information Systems. Java Database Connectivity. Standards and utilities. Java and Databases
Java and Databases COMP514 Distributed Information Systems Java Database Connectivity One of the problems in writing Java, C, C++,, applications is that the programming languages cannot provide persistence
TP JSP : déployer chaque TP sous forme d'archive war
TP JSP : déployer chaque TP sous forme d'archive war TP1: fichier essai.jsp Bonjour Le Monde JSP Exemple Bonjour Le Monde. Après déploiement regarder dans le répertoire work de l'application
Supplement IV.D: Tutorial for MS Access. For Introduction to Java Programming By Y. Daniel Liang
Supplement IV.D: Tutorial for MS Access For Introduction to Java Programming By Y. Daniel Liang This supplement covers the following topics: Creating Databases and Executing SQL Creating ODBC Data Source
ExempleRMI.java. // Fichier de defintion des droits et proprietes // System.setProperty("java.security.policy","../server.java.
ExempleRMI.java import java.lang.*; import java.rmi.registry.*; import java.rmi.server.*; import java.io.*; import java.util.*; ExempleRMI.java import pkgexemple.*; public class ExempleRMI public static
COSC344 Database Theory and Applications. Java and SQL. Lecture 12
COSC344 Database Theory and Applications Lecture 12: Java and SQL COSC344 Lecture 12 1 Last Lecture Trigger Overview This Lecture Java & SQL Source: Lecture notes, Textbook: Chapter 12 JDBC documentation
CSc 230 Software System Engineering FINAL REPORT. Project Management System. Prof.: Doan Nguyen. Submitted By: Parita Shah Ajinkya Ladkhedkar
CSc 230 Software System Engineering FINAL REPORT Project Management System Prof.: Doan Nguyen Submitted By: Parita Shah Ajinkya Ladkhedkar Spring 2015 1 Table of Content Title Page No 1. Customer Statement
Apéndice C: Código Fuente del Programa DBConnection.java
Apéndice C: Código Fuente del Programa DBConnection.java import java.sql.*; import java.io.*; import java.*; import java.util.*; import java.net.*; public class DBConnection Connection pgsqlconn = null;
JDBC (Java / SQL Programming) CS 377: Database Systems
JDBC (Java / SQL Programming) CS 377: Database Systems JDBC Acronym for Java Database Connection Provides capability to access a database server through a set of library functions Set of library functions
What is ODBC? Database Connectivity ODBC, JDBC and SQLJ. ODBC Architecture. More on ODBC. JDBC vs ODBC. What is JDBC?
What is ODBC? Database Connectivity ODBC, JDBC and SQLJ CS2312 ODBC is (Open Database Connectivity): A standard or open application programming interface (API) for accessing a database. SQL Access Group,
Real SQL Programming 1
Real 1 We have seen only how SQL is used at the generic query interface an environment where we sit at a terminal and ask queries of a database. Reality is almost always different: conventional programs
SQL and Java. Database Systems Lecture 19 Natasha Alechina
Database Systems Lecture 19 Natasha Alechina In this Lecture SQL in Java SQL from within other Languages SQL, Java, and JDBC For More Information Sun Java tutorial: http://java.sun.com/docs/books/tutorial/jdbc
LSINF1124 Projet de programmation
LSINF1124 Projet de programmation Database Programming with Java TM Sébastien Combéfis University of Louvain (UCLouvain) Louvain School of Engineering (EPL) March 1, 2011 Introduction A database is a collection
Langages Orientés Objet Java
Langages Orientés Objet Java Exceptions Arnaud LANOIX Université Nancy 2 24 octobre 2006 Arnaud LANOIX (Université Nancy 2) Langages Orientés Objet Java 24 octobre 2006 1 / 32 Exemple public class Example
TP N 10 : Gestion des fichiers Langage JAVA
TP N 10 : Gestion des fichiers Langage JAVA Rappel : Exemple d utilisation de FileReader/FileWriter import java.io.*; public class Copy public static void main(string[] args) throws IOException File inputfile
Evaluation. Copy. Evaluation Copy. Chapter 7: Using JDBC with Spring. 1) A Simpler Approach... 7-2. 2) The JdbcTemplate. Class...
Chapter 7: Using JDBC with Spring 1) A Simpler Approach... 7-2 2) The JdbcTemplate Class... 7-3 3) Exception Translation... 7-7 4) Updating with the JdbcTemplate... 7-9 5) Queries Using the JdbcTemplate...
2. Follow the installation directions and install the server on ccc
Installing a Web Server 1. Install a sample web server, which supports Servlets/JSPs. A light weight web server is Apache Tomcat server. You can get the server from http://tomcat.apache.org/ 2. Follow
Applets, RMI, JDBC Exam Review
Applets, RMI, JDBC Exam Review Sara Sprenkle Announcements Quiz today Project 2 due tomorrow Exam on Thursday Web programming CPM and servlets vs JSPs Sara Sprenkle - CISC370 2 1 Division of Labor Java
CS 377 Database Systems SQL Programming. Li Xiong Department of Mathematics and Computer Science Emory University
CS 377 Database Systems SQL Programming Li Xiong Department of Mathematics and Computer Science Emory University 1 A SQL Query Joke A SQL query walks into a bar and sees two tables. He walks up to them
Application Development A Cocktail of Java and MCP. MCP Guru Series Dan Meyer & Pramod Nair
Application Development A Cocktail of Java and MCP MCP Guru Series Dan Meyer & Pramod Nair Agenda Which of the following topics can be found in an Application Development cocktail? o Calling Java from
NGASI AppServer Manager SaaS/ASP Hosting Automation for Cloud Computing Administrator and User Guide
NGASI AppServer Manager SaaS/ASP Hosting Automation for Cloud Computing Administrator and User Guide NGASI SaaS Hosting Automation is a JAVA SaaS Enablement infrastructure that enables web hosting services
Database Programming. Week 10-2. *Some of the slides in this lecture are created by Prof. Ian Horrocks from University of Oxford
Database Programming Week 10-2 *Some of the slides in this lecture are created by Prof. Ian Horrocks from University of Oxford SQL in Real Programs We have seen only how SQL is used at the generic query
Security Module: SQL Injection
Security Module: SQL Injection Description SQL injection is a security issue that involves inserting malicious code into requests made to a database. The security vulnerability occurs when user provided
Working With Derby. Version 10.2 Derby Document build: December 11, 2006, 7:06:09 AM (PST)
Working With Derby Version 10.2 Derby Document build: December 11, 2006, 7:06:09 AM (PST) Contents Copyright...3 Introduction and prerequisites...4 Activity overview... 5 Activity 1: Run SQL using the
CHAPTER 3. Relational Database Management System: Oracle. 3.1 COMPANY Database
45 CHAPTER 3 Relational Database Management System: Oracle This chapter introduces the student to the basic utilities used to interact with Oracle DBMS. The chapter also introduces the student to programming
7 Web Databases. Access to Web Databases: Servlets, Applets. Java Server Pages PHP, PEAR. Languages: Java, PHP, Python,...
7 Web Databases Access to Web Databases: Servlets, Applets Java Server Pages PHP, PEAR Languages: Java, PHP, Python,... Prof. Dr. Dietmar Seipel 837 7.1 Access to Web Databases by Servlets Java Servlets
Note concernant votre accord de souscription au service «Trusted Certificate Service» (TCS)
Note concernant votre accord de souscription au service «Trusted Certificate Service» (TCS) Veuillez vérifier les éléments suivants avant de nous soumettre votre accord : 1. Vous avez bien lu et paraphé
CSS : petits compléments
CSS : petits compléments Université Lille 1 Technologies du Web CSS : les sélecteurs 1 au programme... 1 ::before et ::after 2 compteurs 3 media queries 4 transformations et transitions Université Lille
Introduction au BIM. ESEB 38170 Seyssinet-Pariset Economie de la construction email : [email protected]
Quel est l objectif? 1 La France n est pas le seul pays impliqué 2 Une démarche obligatoire 3 Une organisation plus efficace 4 Le contexte 5 Risque d erreur INTERVENANTS : - Architecte - Économiste - Contrôleur
Mini Project Report ONLINE SHOPPING SYSTEM
Mini Project Report On ONLINE SHOPPING SYSTEM Submitted By: SHIBIN CHITTIL (80) NIDHEESH CHITTIL (52) RISHIKESE M R (73) In partial fulfillment for the award of the degree of B. TECH DEGREE In COMPUTER
Configuration Guide. SafeNet Authentication Service. SAS Agent for AD FS
SafeNet Authentication Service Configuration Guide SAS Agent for AD FS Technical Manual Template Release 1.0, PN: 000-000000-000, Rev. A, March 2013, Copyright 2013 SafeNet, Inc. All rights reserved. 1
How To Use The Database In Jdbc.Com On A Microsoft Gdbdns.Com (Amd64) On A Pcode (Amd32) On An Ubuntu 8.2.2 (Amd66) On Microsoft
CS 7700 Transaction Design for Microsoft Access Database with JDBC Purpose The purpose of this tutorial is to introduce the process of developing transactions for a Microsoft Access Database with Java
1 SQL Data Types and Schemas
COMP 378 Database Systems Notes for Chapters 4 and 5 of Database System Concepts Advanced SQL 1 SQL Data Types and Schemas 1.1 Additional Data Types 1.1.1 User Defined Types Idea: in some situations, data
A table is a collection of related data entries and it consists of columns and rows.
CST 250 MySQL Notes (Source: www.w3schools.com) MySQL is the most popular open-source database system. What is MySQL? MySQL is a database. The data in MySQL is stored in database objects called tables.
Personnalisez votre intérieur avec les revêtements imprimés ALYOS design
Plafond tendu à froid ALYOS technology ALYOS technology vous propose un ensemble de solutions techniques pour vos intérieurs. Spécialiste dans le domaine du plafond tendu, nous avons conçu et développé
Java and Microsoft Access SQL Tutorial
Java and Microsoft Access SQL Tutorial Introduction: Last Update : 30 April 2008 Revision : 1.03 This is a short tutorial on how to use Java and Microsoft Access to store and retrieve data in an SQL database.
Novell Identity Manager
AUTHORIZED DOCUMENTATION Manual Task Service Driver Implementation Guide Novell Identity Manager 4.0.1 April 15, 2011 www.novell.com Legal Notices Novell, Inc. makes no representations or warranties with
How To Write A Program In Java (Programming) On A Microsoft Macbook Or Ipad (For Pc) Or Ipa (For Mac) (For Microsoft) (Programmer) (Or Mac) Or Macbook (For
Projet Java Responsables: Ocan Sankur, Guillaume Scerri (LSV, ENS Cachan) Objectives - Apprendre à programmer en Java - Travailler à plusieurs sur un gros projet qui a plusieurs aspects: graphisme, interface
Annexe - OAuth 2.0. 1 Introduction. Xavier de Rochefort [email protected] - labri.fr/~xderoche 15 mai 2014
1 Introduction Annexe - OAuth 2.0. Xavier de Rochefort [email protected] - labri.fr/~xderoche 15 mai 2014 Alternativement à Flickr, notre serveur pourrait proposer aux utilisateurs l utilisation de leur
Memo bconsole. Memo bconsole
Memo bconsole Page 1 / 24 Version du 10 Avril 2015 Page 2 / 24 Version du 10 Avril 2015 Sommaire 1 Voir les différentes travaux effectués par bacula3 11 Commande list jobs 3 12 Commande sqlquery 3 2 Afficher
RAPPORT FINANCIER ANNUEL PORTANT SUR LES COMPTES 2014
RAPPORT FINANCIER ANNUEL PORTANT SUR LES COMPTES 2014 En application de la loi du Luxembourg du 11 janvier 2008 relative aux obligations de transparence sur les émetteurs de valeurs mobilières. CREDIT
Course Objectives. Database Applications. External applications. Course Objectives Interfacing. Mixing two worlds. Two approaches
Course Objectives Database Applications Design Construction SQL/PSM Embedded SQL JDBC Applications Usage Course Objectives Interfacing When the course is through, you should Know how to connect to and
TABLE OF CONTENTS...2 INTRODUCTION...3 APPLETS AND APPLICATIONS...3 JAVABEANS...4 EXCEPTION HANDLING...5 JAVA DATABASE CONNECTIVITY (JDBC)...
Advanced Features Trenton Computer Festival May 1 sstt & 2 n d,, 2004 Michael P.. Redlich Senior Research Technician ExxonMobil Research & Engineering [email protected] Table of Contents
GSAC CONSIGNE DE NAVIGABILITE définie par la DIRECTION GENERALE DE L AVIATION CIVILE Les examens ou modifications décrits ci-dessous sont impératifs. La non application des exigences contenues dans cette
CS2506 Operating Systems II Lab 8, 8 th Tue/03 /2011 Java API
Introduction The JDBC API was designed to keep simple things simple. This means that the JDBC makes everyday database tasks easy. In this lab you will learn about how Java interacts with databases. JDBC
Why Is This Important? Database Application Development. SQL in Application Code. Overview. SQL in Application Code (Contd.
Why Is This Important? Database Application Development Chapter 6 So far, accessed DBMS directly through client tools Great for interactive use How can we access the DBMS from a program? Need an interface
Short Form Description / Sommaire: Carrying on a prescribed activity without or contrary to a licence
NOTICE OF VIOLATION (Corporation) AVIS DE VIOLATION (Société) Date of Notice / Date de l avis: August 29, 214 AMP Number / Numéro de SAP: 214-AMP-6 Violation committed by / Violation commise par : Canadian
Archived Content. Contenu archivé
ARCHIVED - Archiving Content ARCHIVÉE - Contenu archivé Archived Content Contenu archivé Information identified as archived is provided for reference, research or recordkeeping purposes. It is not subject
public class ResultSetTable implements TabelModel { ResultSet result; ResultSetMetaData metadata; int num cols;
C H A P T E R5 Advanced SQL Practice Exercises 5.1 Describe the circumstances in which you would choose to use embedded SQL rather than SQL alone or only a general-purpose programming language. Writing
Solaris 10 Documentation README
Solaris 10 Documentation README Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054 U.S.A. Part No: 817 0550 10 January 2005 Copyright 2005 Sun Microsystems, Inc. 4150 Network Circle, Santa
Government Girls Polytechnic, Bilaspur
Government Girls Polytechnic, Bilaspur Name of the Lab: Internet & Web Technology Lab Title of the Practical : Dynamic Web Page Design Lab Class: CSE 6 th Semester Teachers Assessment:20 End Semester Examination:50
TECH TUTORIAL: EMBEDDING ANALYTICS INTO A DATABASE USING SOURCEPRO AND JMSL
TECH TUTORIAL: EMBEDDING ANALYTICS INTO A DATABASE USING SOURCEPRO AND JMSL This white paper describes how to implement embedded analytics within a database using SourcePro and the JMSL Numerical Library,
Introduction ToIP/Asterisk Quelques applications Trixbox/FOP Autres distributions Conclusion. Asterisk et la ToIP. Projet tuteuré
Asterisk et la ToIP Projet tuteuré Luis Alonso Domínguez López, Romain Gegout, Quentin Hourlier, Benoit Henryon IUT Charlemagne, Licence ASRALL 2008-2009 31 mars 2009 Asterisk et la ToIP 31 mars 2009 1
Tutorial for Spring DAO with JDBC
Overview Tutorial for Spring DAO with JDBC Prepared by: Nigusse Duguma This tutorial demonstrates how to work with data access objects in the spring framework. It implements the Spring Data Access Object
Programmation RMI Sécurisée
Programmation RMI Sécurisée 5 janvier 2012 D après http ://blogs.oracle.com/lmalventosa/entry/using_the_ssl_tls_based. A Code RMI de Base A.1 Les fichiers Hello.java public i n t e r f a c e Hello extends
Administrer les solutions Citrix XenApp et XenDesktop 7.6 CXD-203
Administrer les solutions Citrix XenApp XenDesktop 7.6 CXD-203 MIEL Centre Agréé : N 11 91 03 54 591 Pour contacter le service formation : 01 60 19 16 27 Pour consulter le planning des formations : www.miel.fr/formation
Tool & Asset Manager 2.0. User's guide 2015
Tool & Asset Manager 2.0 User's guide 2015 Table of contents Getting Started...4 Installation...5 "Standalone" Edition...6 "Network" Edition...7 Modify the language...8 Barcode scanning...9 Barcode label
Sun Management Center Change Manager 1.0.1 Release Notes
Sun Management Center Change Manager 1.0.1 Release Notes Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054 U.S.A. Part No: 817 0891 10 May 2003 Copyright 2003 Sun Microsystems, Inc. 4150
Microsoft SQL Server Features that can be used with the IBM i
that can be used with the IBM i Gateway/400 User Group February 9, 2012 Craig Pelkie [email protected] Copyright 2012, Craig Pelkie ALL RIGHTS RESERVED What is Microsoft SQL Server? Windows database management
Web Development and Core Java Lab Manual V th Semester
Web Development and Core Java Lab Manual V th Semester DEPT. OF COMPUTER SCIENCE AND ENGINEERING Prepared By: Kuldeep Yadav Assistant Professor, Department of Computer Science and Engineering, RPS College
Introduction Les failles les plus courantes Les injections SQL. Failles Web. Maxime Arthaud. net7. Jeudi 03 avril 2014.
Maxime Arthaud net7 Jeudi 03 avril 2014 Syllabus Introduction Exemple de Requête Transmission de données 1 Introduction Exemple de Requête Transmission de données 2 3 Exemple de Requête Transmission de
Cours de Java. Sciences-U Lyon. Java - Introduction Java - Fondamentaux Java Avancé. http://www.rzo.free.fr
Cours de Java Sciences-U Lyon Java - Introduction Java - Fondamentaux Java Avancé http://www.rzo.free.fr Pierre PARREND 1 Octobre 2004 Sommaire Java Introduction Java Fondamentaux Java Avancé GUI Graphical
CS346: Database Programming. http://warwick.ac.uk/cs346
CS346: Database Programming http://warwick.ac.uk/cs346 1 Database programming Issue: inclusionofdatabasestatementsinaprogram combination host language (general-purpose programming language, e.g. Java)
Computer Security - Tutorial Sheet 3: Network & Programming Security
Computer Security - Tutorial Sheet 3: Network & Programming Security School of Informatics 27th February 2014 This is the third problem sheet for the Computer Security course, covering topics in network
Sample HP OO Web Application
HP OO 10 OnBoarding Kit Community Assitstance Team Sample HP OO Web Application HP OO 10.x Central s rich API enables easy integration of the different parts of HP OO Central into custom web applications.
STAGE YOGA & RANDONNEES à MADERE
STAGE YOGA & RANDONNEES à MADERE Du dimanche 10 au dimanche 17 juillet 2016 Animé par Naomi NAKASHIMA et Sylvain BRUNIER L île aux fleurs, paradis des randonneurs et amoureux de la nature Au cours de ce
CS/CE 2336 Computer Science II
CS/CE 2336 Computer Science II UT D Session 23 Database Programming with Java Adapted from D. Liang s Introduction to Java Programming, 8 th Ed. and other sources 2 Database Recap Application Users Application
A Brief Introduction to MySQL
A Brief Introduction to MySQL by Derek Schuurman Introduction to Databases A database is a structured collection of logically related data. One common type of database is the relational database, a term
Prof. Edwar Saliba Júnior
package Conexao; 2 3 /** 4 * 5 * @author Cynthia Lopes 6 * @author Edwar Saliba Júnior 7 */ 8 import java.io.filenotfoundexception; 9 import java.io.ioexception; 10 import java.sql.sqlexception; 11 import
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";! SET time_zone = "+00:00";!
-- phpmyadmin SQL Dump -- version 4.1.3 -- http://www.phpmyadmin.net -- -- Client : localhost -- Généré le : Lun 19 Mai 2014 à 15:06 -- Version du serveur : 5.6.15 -- Version de PHP : 5.4.24 SET SQL_MODE
Corrigés des exercices SQL pour MySQL
Corrigés des exercices SQL pour MySQL Christian Soutou Eyrolles 2006 Chapitre 1 Création des tables CREATE TABLE Segment (indip varchar(11), nomsegment varchar(20) NOT NULL, etage TINYINT(1), CONSTRAINT
How To Use A Sas Server On A Java Computer Or A Java.Net Computer (Sas) On A Microsoft Microsoft Server (Sasa) On An Ipo (Sauge) Or A Microsas (Sask
Exploiting SAS Software Using Java Technology Barbara Walters, SAS Institute Inc., Cary, NC Abstract This paper describes how to use Java technology with SAS software. SAS Institute currently offers several
Apache Derby Security. Jean T. Anderson [email protected] [email protected]
Apache Derby Security Jean T. Anderson [email protected] [email protected] Agenda Goals Understand how to take advantage of Apache Derby security features with a focus on the simplest options and configurations
Java Programming. JDBC Spring Framework Web Services
Chair of Software Engineering Java Programming Languages in Depth Series JDBC Spring Framework Web Services Marco Piccioni May 31st 2007 What will we be talking about Java Data Base Connectivity The Spring
Documentation technique
Documentation technique Panneau d administration du site web Sommaire I. Présentation de l outil Prestashop II. Modification TPL 1. Catégories imagées 2. Modification du pied de page 3. Plan du site III.
Chapter 2 Introduction to Java programming
Chapter 2 Introduction to Java programming 1 Keywords boolean if interface class true char else package volatile false byte final switch while throws float private case return native void protected break
Java MySQL Connector & Connection Pool
Java MySQL Connector & Connection Pool Features & Optimization Kenny Gryp November 4, 2014 @gryp 2 Please excuse me for not being a Java developer DISCLAIMER What I Don t Like
JWIG Yet Another Framework for Maintainable and Secure Web Applications
JWIG Yet Another Framework for Maintainable and Secure Web Applications Anders Møller Mathias Schwarz Aarhus University Brief history - Precursers 1999: Powerful template system Form field validation,
First Java Programs. V. Paúl Pauca. CSC 111D Fall, 2015. Department of Computer Science Wake Forest University. Introduction to Computer Science
First Java Programs V. Paúl Pauca Department of Computer Science Wake Forest University CSC 111D Fall, 2015 Hello World revisited / 8/23/15 The f i r s t o b l i g a t o r y Java program @author Paul Pauca
Stockage distribué sous Linux
Félix Simon Ludovic Gauthier IUT Nancy-Charlemagne - LP ASRALL Mars 2009 1 / 18 Introduction Répartition sur plusieurs machines Accessibilité depuis plusieurs clients Vu comme un seul et énorme espace
Security Code Review- Identifying Web Vulnerabilities
Security Code Review- Identifying Web Vulnerabilities Kiran Maraju, CISSP, CEH, ITIL, SCJP Email: [email protected] 1 1.1.1 Abstract Security Code Review- Identifying Web Vulnerabilities This paper
Aucune validation n a été faite sur l exemple.
Cet exemple illustre l utilisation du Type BLOB dans la BD. Aucune validation n a été faite sur l exemple. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data;
Comparing the Effectiveness of Penetration Testing and Static Code Analysis
Comparing the Effectiveness of Penetration Testing and Static Code Analysis Detection of SQL Injection Vulnerabilities in Web Services PRDC 2009 Nuno Antunes, [email protected], [email protected] University
Oracle WebLogic Server
Oracle WebLogic Server Monitoring and Managing with the Java EE Management APIs 10g Release 3 (10.3) July 2008 Oracle WebLogic Server Monitoring and Managing with the Java EE Management APIs, 10g Release
TP : Configuration de routeurs CISCO
TP : Configuration de routeurs CISCO Sovanna Tan Novembre 2010 révision décembre 2012 1/19 Sovanna Tan TP : Routeurs CISCO Plan 1 Présentation du routeur Cisco 1841 2 Le système d exploitation /19 Sovanna
