Movie Manager by Patrick Wesley and Chris Grey Internet Database Project for CS 8630 – Summer 2004 Dr. Guimaraes.

Slides:



Advertisements
Similar presentations
Servers- Apache Tomcat Server Server-side scripts- Java Server Pages Java Server Pages - Xue Bai.
Advertisements

Keys, Referential Integrity and PHP One to Many on the Web.
Tux2 Database The Architecture of Our System © Juhani Välimäki 2005.
Chapter 10 Database Applications Copyright © 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved. McGraw-Hill.
Let’s try Oracle. Accessing Oracle The Oracle system, like the SQL Server system, is client / server. For SQL Server, –the client is the Query Analyser.
Object-Oriented Enterprise Application Development Tomcat 3.2 Configuration Last Updated: 03/30/2001.
Fundamentals, Design, and Implementation, 9/e Chapter 14 JDBC, Java Server Pages, and MySQL.
Fast Track to ColdFusion 9. Getting Started with ColdFusion Understanding Dynamic Web Pages ColdFusion Benchmark Introducing the ColdFusion Language Introducing.
Outline IS400: Development of Business Applications on the Internet Fall 2004 Instructor: Dr. Boris Jukic Server Side Web Technologies: Part 2.
Multiple Tiers in Action
Apache Tomcat Server Typical html Request/Response cycle
DT228/3 Web Development Databases. Database Almost all web application on the net access a database e.g. shopping sites, message boards, search engines.
MC365 Application Servers: Java Server Pages (JSP’s) and Session Management.
Computer Science 101 Web Access to Databases Overview of Web Access to Databases.
ECE356 – Database Systems Lab 1 – Building a Web Project with NetBeans Tiuley Alguindigue Lab Instructor – University of Waterloo, E & CE Dept. Fall 2013.
DAT702.  Standard Query Language  Ability to access and manipulate databases ◦ Retrieve data ◦ Insert, delete, update records ◦ Create and set permissions.
Java Server Programming Jeff Schmitt Towson University October 15, 1998.
Copyright 2001 Michael Slinn JBrowCaps Open Source Browser Independent Page Rendering for Java Servlets Mike Slinn
Eclipse is an open source IDE (Integrated Development Environment) for developing applications in Java, C/C++, HTML, Cobol, Perl, etc. The official Eclipse.
DAT602 Database Application Development Lecture 15 Java Server Pages Part 1.
Advance Computer Programming Java Database Connectivity (JDBC) – In order to connect a Java application to a database, you need to use a JDBC driver. –
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
M. Taimoor Khan * Java Server Pages (JSP) is a server-side programming technology that enables the creation of dynamic,
WaveMaker Visual AJAX Studio 4.0 Training Studio Overview.
CSCI 6962: Server-side Design and Programming
A Guide to SQL, Eighth Edition Chapter Three Creating Tables.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Outline 29.1 Multi-Tier Architecture 29.2 Web Servers.
Server-side Scripting Powering the webs favourite services.
Tutorial 10 Adding Spry Elements and Database Functionality Dreamweaver CS3 Tutorial 101.
Securing Large Applications CSCI 5931 Web Security Rungang Mo, Yingying Sun.
Views, Indexes and JDBC/JSP tutorial Professor: Dr. Shu-Ching Chen TA: Haiman Tian 1.
10-1 aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf.
Midterm Exam Chapters 1,2,3,5, 6,7 (closed book) March 11, 2014.
LiveCycle Data Services Introduction Part 2. Part 2? This is the second in our series on LiveCycle Data Services. If you missed our first presentation,
Eurotrace Hands-On The Eurotrace File System. 2 The Eurotrace file system Under MS ACCESS EUROTRACE generates several different files when you create.
CPSC 203 Introduction to Computers Lab 23 By Jie Gao.
Servlets Database Access. Agenda:  Setup Java Environment  Install Database  Install Database Drivers  Create Table and add records  Accessing a.
 What software components are required?  How do I install the Oracle JDBC driver?  How do I connect to the database?  What form is the data in and.
Index and JDBC/JSP tutorial Professor: Dr. Shu-Ching Chen TA: Hsin-Yu Ha.
Copyright © 2002 ProsoftTraining. All rights reserved. JavaServer Pages.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Outline 31.1 Reviewing the Bookstore Application 31.2.
© 2002 Legion Systems Inc 1 Howard Chen - April 6, 2010 EGL Database Connections
1 Introduction to Web Applications & APIs. 2 Agenda  Architecture of Web Applications Three layer architecture  Web Server (Tomcat) Installation Data.
Database Management Systems CS 420. Topics Outline 1. Introduction 2. HTML Review 3. VBScript 4. Access DBMS 5. Relational Database 6. Design Process.
DATABASE CONNECTIVITY TO MYSQL. Introduction =>A real life application needs to manipulate data stored in a Database. =>A database is a collection of.
Chapter 1 Getting Started With Dreamweaver. Exploring the Dreamweaver Workspace The Dreamweaver workspace is where you can find all the tools to create.
BlackBerry Applications using Microsoft Visual Studio and Database Handling.
Microsoft FrontPage 2003 Illustrated Complete Integrating a Database with a Web Site.
Implementing and Using the SIRWEB Interface Setup of the CGI script and web procfile Connecting to your database using HTML Retrieving data using the CGI.
Creating a simple database This shows you how to set up a database using PHPMyAdmin (installed with WAMP)
U:/msu/course/cse/103 Day 21, Slide 1 CSE 103 Makeups –If you didn’t take one over the weekend, take one TUESDAY or WEDNESDAY!
JSP Server Integrated with Oracle8i Project2, CMSC691X Summer02 Ching-li Peng Ying Zhang.
Project Created by: Aakriti Nakarmi Anthony Aguilar Jennifer Wilson Laurence Wilson Suraj Tamrakar Under the Supervision of Professor.
CS562 Advanced Java and Internet Application Introduction to the Computer Warehouse Web Application. Java Server Pages (JSP) Technology. By Team Alpha.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
Field Trip #24 Setting Up a Web Server. Apache Apache is one of the most successful open source web servers In 1995 the most popular web server was the.
CP476 Internet Computing Perl CGI and MySql 1 Relational Databases –A database is a collection of data organized to allow relatively easy access for retrievals,
CSCI 3327 Visual Basic Chapter 13: Databases and LINQ UTPA – Fall 2011.
2 Copyright © 2004, Oracle. All rights reserved. ADF Development Process.
Physical Layer of a Repository. March 6, 2009 Agenda – What is a Repository? –What is meant by Physical Layer? –Data Source, Connection Pool, Tables and.
Introduction to MySQL  Working with MySQL and MySQL Workbench.
Copyright © 2016 Ramez Elmasri and Shamkant B. Navathe.
JDBC. Database is used to store data permanently. These days almost all Applications needs database to store its data persistently. Below are the most.
A Presentation Presentation On JSP On JSP & Online Shopping Cart Online Shopping Cart.
16 Copyright © 2004, Oracle. All rights reserved. Testing the Migrated Oracle Database.
CS 562 Advanced Java and Internet Application Computer Warehouse Web Application By Team Alpha :-  Puja Mehta (102163)  Mona Nagpure (102147)
COM621: Advanced Interactive Web Development Lecture 10 PHP and MySQL.
 INDEX  Overview.  Introduction.  System Requirement.  Features Of SQL.  Development Process.  System Design (SDLC).  Implementation.  Future.
HW#4 Making Simple BBS Using JDBC
School of Computer Science
Presentation transcript:

Movie Manager by Patrick Wesley and Chris Grey Internet Database Project for CS 8630 – Summer 2004 Dr. Guimaraes

Introduction We set out to Create a Web based Management Application for our Home Movie Collections that would: We set out to Create a Web based Management Application for our Home Movie Collections that would: - Maintain a movie inventory - Track movies loaned to friends and family - Store information about our movie collection - Store contact information for loaned movies - Publish our collection to the Web so family and friends can see what they can borrow

Technologies Used Oracle 9i Personal Edition Oracle 9i Personal Edition Java Database Connectivity (JDBC) Java Database Connectivity (JDBC) Apache Tomcat – Web Server Apache Tomcat – Web Server Java Server Pages Java Server Pages HTML HTML SQL SQL

The Application was Created by: Gathering Specifications Gathering Specifications Creating an E-R Diagram Creating an E-R Diagram Creating a Relational Schema Creating a Relational Schema Creating the Tables in Oracle Creating the Tables in Oracle Developing Java Server Pages Developing Java Server Pages Deploying JSP in Apache Tomcat Deploying JSP in Apache Tomcat Using and testing the Application Using and testing the Application

Specifications Were Gathered by: Generating ideas on the Application’s uses Generating ideas on the Application’s uses Discussing the functionality Discussing the functionality Discussing the information we wanted to store Discussing the information we wanted to store Documenting and compiling information to ensure correctness Documenting and compiling information to ensure correctness

The E-R Diagram

The Relational Schema

Tables Created in Oracle ALTER TABLE ACTOR DROP CONSTRAINT ACTOR_pk; DROP TABLE ACTOR; CREATE TABLE ACTOR ( ACTOR_ID NUMBER(4), ACTOR_ID NUMBER(4), ACTOR_FNAME VARCHAR2(30), ACTOR_FNAME VARCHAR2(30), ACTOR_LNAMEVARCHAR2(30), ACTOR_LNAMEVARCHAR2(30), ACTOR_GENDERVARCHAR2(1), ACTOR_GENDERVARCHAR2(1), CONSTRAINT ACTOR_pk PRIMARY KEY (ACTOR_ID) CONSTRAINT ACTOR_pk PRIMARY KEY (ACTOR_ID));

Java Server Page Created Elements Used Elements Used - HTML - SQL - JDBC - Java

The HTML <html><head> Manage actors Manage actors </head></html> Or use JSP to generate your HTML <%Out.println(“<html><head>”); Out.println(“ Manage actors ”); Out.println(“<head>”);Out.println(“</html>”);%>

The SQL - The SQL statements are generated and then executed sql = dbconn.prepareStatement ("select max(actor_id) mmov from actor"); ("select max(actor_id) mmov from actor");sql.executeQuery();

The JDBC //Load Oracle Driver Class.forName("oracle.jdbc.driver.OracleDriver"); //establish connection to database con = DriverManager.getConnection “user", “pass"); “user", “pass"); //create sql statement sql = dbconn.prepareStatement("select max(actor_id) mmov from actor"); sql = dbconn.prepareStatement("select max(actor_id) mmov from actor"); //get results of query //get results of query results = sql.executeQuery(); results = sql.executeQuery();

The Java - Used various functions -out.println(“ ”); -out.println(“ ”); -Integer.parseInt(variable_name); -variablename.equals(“var2”); - This area was not fully explored - This area was not fully explored

General Flow of the JSPs 1) Import Java Libraries 1) Import Java Libraries 2) Generate 2) Generate 3) Get values from the calling HTML Form or no values if default or initial page load. 3) Get values from the calling HTML Form or no values if default or initial page load. 4) Connect to DB and Execute SQL 4) Connect to DB and Execute SQL 5) Display Results and Generate Form 5) Display Results and Generate Form 6) Generate Buttons on HTML form for Actions and generate ending HTML tags. 6) Generate Buttons on HTML form for Actions and generate ending HTML tags.

Deploying the JSP (For Apps on Local Hosts only) - copy your.jsp file to: $tomcat_home_dir\webapps\root directory. $tomcat_home_dir\webapps\root directory. - Launch your Web Browser and type: For more info:

Using Movie Manager

Manage Movies

Query in Manage Movies Form

Query Continued

Query Complete

Add / Delete Actor

Actor Added

Other Forms

Other Forms Continued

Difficulties Encountered - The variables used in the SQL statements have to be checked and initialized if they are not set to a value. - Configuring Apache Tomcat with the correct Class Path (Oracle Drivers).

What took the longest? Developing the Application took the longest, but experimenting and choosing the technology to use and configuring the technologies chosen consumed a great deal of time as well. Developing the Application took the longest, but experimenting and choosing the technology to use and configuring the technologies chosen consumed a great deal of time as well.

What would we do differently? We would have chosen Oracle, JSP, and Apache Tomcat immediately and created a more advanced application using Java’s full potential. We would have chosen Oracle, JSP, and Apache Tomcat immediately and created a more advanced application using Java’s full potential.

Improvements? The application needs more error checking. This was limited due to time constraints. The application needs more error checking. This was limited due to time constraints. The appearance needs to be improved. The appearance needs to be improved. More data needs to be collected. More data needs to be collected. Reports would be nice. Reports would be nice.

Questions? ??????????????????????????????????? ? ? ???????????????????????????????????