Chapter 15 Java Server Pages (JSP)
|
|
- Frederica Tucker
- 5 years ago
- Views:
Transcription
1 Sungkyunkwan University Chapter 15 Java Server Pages (JSP) Prepared by J. Jung and H. Choo Web Programming Copyright Networking Networking Laboratory Laboratory 1/30
2 Server & Client The client requests the server a web page The web server finds the web page and passes it to the client Web Programming Networking Laboratory 2/30
3 Dynamic Web Page Pages whose content changes according to the user s request Bulletin board, Blog, and Guestbook You can write a helper program inside the server computer, run it whenever you need it, get the results, and return it to the client computer. Client Web WebServer CGI Program Program CGI Program Program Web Programming Networking Laboratory 3/30
4 Servlet Efficient : Servlets are more efficient because they create threads to service each request. Convenient : Developers who know the Java language can use it. Powerful : With Java Servlets, you can easily handle many tasks that were very difficult with existing programs. Client WebServer Servlet Servlet Thread Thread Thread Thread Web Programming Networking Laboratory 4/30
5 JSP JSP (Java Server Pages) is developed to solve these problems. A server-side script language for building dynamic web pages on Java. It is based on a Java servlet. Insert Java code into an HTML document only when needed. Web Programming Networking Laboratory 5/30
6 Tomcat A kind of JSP engine Tomcat = Web Server + JSP Container Client Web Server Database JSP files are stored here. Internet Apache Tomcat JSP Servlet Engine Web Programming Networking Laboratory 6/30
7 Scriptlet <% Announces the start of Java code. Any code block is possible. %> Announces the termination of Java code. Web Programming Networking Laboratory 7/30
8 JSP Expression <% Represents JSP and = means Java formula. You can put any formula in the Java language. This is a tag that means that the JSP has been terminated. Web Programming Networking Laboratory 8/30
9 Various Scriptlet Syntax Example (1/3) Understanding the syntax of scriptlet in JSP <!DOCTYPE html> <HTML> <BODY> <% java.util.date date = new java.util.date(); %> 안녕하세요? 현재시각은 <%= date %> 입니다. </BODY> </HTML> Web Programming Networking Laboratory 9/30
10 Various Scriptlet Syntax Example (2/3) Understanding the syntax of scriptlet in JSP <!DOCTYPE html> <HTML> <BODY> <% System.out.println( "Print Date" ); java.util.date date = new java.util.date(); %> 안녕하세요? 현재시각은 <% out.println(string.valueof( date )); %> 입니다. </BODY> </HTML> Web Programming Networking Laboratory 10/30
11 Various Scriptlet Syntax Example (3/3) Understanding the syntax of scriptlet in JSP <!DOCTYPE html> <HTML> <BODY> <% java.util.date date = new java.util.date(); %> 안녕하세요? 현재시각은 <% out.println(date); out.println(" 이고 ip 주소는 "); out.println(request.getremoteaddr()); %> 입니다. </BODY> </HTML> Web Programming Networking Laboratory 11/30
12 JSP Comment Example Understanding the syntax of comment statement in JSP <!DOCTYPE html> <html> <head><title> 주석테스트 </title></head> <body> <h2> 주석을테스트합니다.</h2> <%-- This comment is not displayed. --%> </body> </html> Web Programming Networking Laboratory 12/30
13 JSP Import Example Understanding the syntax of import statement in JSP <!DOCTYPE html> page import="java.util.*" %> <HTML> <BODY> <% Date date = new Date(); %> 안녕하세요? 현재시간은 <%= date %> 입니다. </BODY> </HTML> Web Programming Networking Laboratory 13/30
14 JSP Declaration <%! Announces the start of declaration. Contains definitions of variables and methods. %> Announces the termination of declaration. Web Programming Networking Laboratory 14/30
15 JSP Declaration Example Understanding the syntax of declaration statement in JSP <!DOCTYPE html> <HTML> <BODY> page import="java.util.*" %> <%! Date date = new Date(); Date getdate() { return date; } %> 안녕하세요? 현재시각은 <%= getdate() %> 입니다. </BODY> </HTML> Web Programming Networking Laboratory 15/30
16 JSP Conditional Statement Example Understanding the syntax of conditional statement in JSP <%! int day = 3; %> <html> <head><title>if/else 예제 </title></head> <body> <% if (day == 1 day == 7) { %> <p> 오늘은주말입니다.</p> <% } else { %> <p> 오늘은주말이아닙니다.</p> <% } %> </body> </html> Web Programming Networking Laboratory 16/30
17 JSP Loop Statement Example (1/2) Understanding the syntax of loop statement in JSP <%! int fontsize; %> <html> <head><title>loop Statement Example</title></head> <body> <%for ( fontsize = 1; fontsize <= 6; fontsize++) { %> <font color="red" size="<%= fontsize %>"> 안녕하세요? </font><br /> <%}%> </body> </html> Web Programming Networking Laboratory 17/30
18 JSP Loop Statement Example (2/2) Understanding the syntax of loop statement in JSP page contenttype="text/html; charset=utf-8" language="java" %> <% String[] array={" 홍길동 "," 김철수 "," 김영희 "}; %> <html> <body> <% int i=0; for(i=0; i < array.length; i++) { out.print(" 배열요소 : " + array[i] + "<br/>"); } %> </body> </html> Web Programming Networking Laboratory 18/30
19 MySQL (1/2) Public database server Client Web Server Database JSP files are stored here. Internet Apache Tomcat JSP Servlet Engine Web Programming Networking Laboratory 19/30
20 MySQL (2/2) MySQL is an open-source relational database management system (RDBMS). MySQL is written in C and C++, so very fast. MySQL works on many system platforms, Linux, macos, Microsoft Windows, etc. MySQL software is Open Source. MySQL Server works in client/server or embedded systems. SQL(Structured Query Language): It is a special purpose programming language designed to manage the data of a relational database management system (RDBMS). Web Programming Networking Laboratory 20/30
21 MySQL - JSP Example (1/9) ebookshop (1/9) Understanding the syntax of combining JSP and MySQL Web Programming Networking Laboratory 21/30
22 MySQL - JSP Example (2/9) ebookshop (2/9) Install MySQL Community Installer Install MySQL Server and Connector/J Copy MySQL database library for fixing error Copy mysql-connector-java-x.x.xx.jar to (Tomcat installation directory)/lib. Create Database Uses the utf-8 version of the command line client Create Web Application Create a directory called ebookshop to (TomcatDirectory)/webapps. Run with a web browser using Web Programming Networking Laboratory 22/30
23 MySQL - JSP Example (3/9) ebookshop (3/9) order.jsp <%@ page import="java.sql.*" %> <%-- 자바라이브러리 import --%> <%@ page language="java" contenttype="text/html; charset=utf-8" pageencoding="utf-8"%> <%-- JSP 선언 --%> <% request.setcharacterencoding("utf-8"); %> <html> <head> <title> 온라인서점예제 </title> </head> <body> <h1> 인터넷프로그래머문고 </h1> <h3> 제목을입력하세요 :</h3> <form method="post"> 책제목 : <input type="text" name="title"> <br /> <input type="submit" value=" 검색 "> </form> Web Programming Networking Laboratory 23/30
24 MySQL - JSP Example (4/9) ebookshop (4/9) order.jsp <% String title = request.getparameter("title"); // title 키에저장된 value 수신 if (title!= null) { Class.forName("com.mysql.jdbc.Driver"); // MySQL 연결 (JDBC_URL, ID, PW) Connection conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/book_db", "root", "1234"); Statement stmt = conn.createstatement(); String sqlstr = "SELECT * FROM book_table WHERE title LIKE '%" + title + "%' ORDER BY title ASC"; ResultSet rset = stmt.executequery(sqlstr); // SQL 구문실행 %> <hr /> <form method="post" action="order_result.jsp"> <!-- submit 할경우 order_result.jsp 로 id 값전송 --> <table border="2"> <tr> <th> 주문 </th> <th> 저자 </th> <th> 제목 </th> <th> 가격 </th> <th> 수량 </th> </tr> Web Programming Networking Laboratory 24/30
25 MySQL - JSP Example (5/9) ebookshop (5/9) order.jsp <% while (rset.next()) { // 다음 SQL 실행결과가있는경우 int id = rset.getint("id"); %> <tr> <td><input type="checkbox" name="id" value="<%= id %>"></td> <td><%= rset.getstring("author") %></td> <td><%= rset.getstring("title") %></td> <td><%= rset.getint("price") %>won</td> <td><%= rset.getint("qty") %></td> </tr> <% } %> </table> <br /> Web Programming Networking Laboratory 25/30
26 MySQL - JSP Example (6/9) ebookshop (6/9) order.jsp <input type="submit" value=" 주문 "> <input type="reset" value=" 초기화 "> </form> <a href="<%= request.getrequesturi() %>"> <h3> 재주문 </h3> </a> <% // 연결종료 rset.close(); stmt.close(); conn.close(); } %> </body> </html> Web Programming Networking Laboratory 26/30
27 MySQL - JSP Example (7/9) ebookshop (7/9) order_result.jsp <%@ page import="java.sql.*" %> <%-- 자바라이브러리 import --%> <html> <head> <title>order Screen</title> </head> <body> <h2> 주문해주셔서감사합니다.</h2> <% String[] ids = request.getparametervalues("id"); // id 키에저장된 value 배열수신 if (ids!= null) { Class.forName("com.mysql.jdbc.Driver"); // MySQL 연결 (JDBC_URL, ID, PW) Connection conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/book_db", "root", "1234"); Statement stmt = conn.createstatement(); %> <table border="2"> <tr> <th> 저자 </th> <th> 제목 </th> <th> 가격 </th> <th> 수량 </th> </tr> Web Programming Networking Laboratory 27/30
28 MySQL - JSP Example (8/9) ebookshop (8/9) order_result.jsp <% for (int i = 0; i < ids.length; i++) { String sqlstr1 = "UPDATE book_table SET qty = qty - 1 WHERE id = " + ids[i]; // 재고수량변경 stmt.executeupdate(sqlstr1); String sqlstr2 = "SELECT * FROM book_table WHERE id = " + ids[i]; // 재고수량변경후다시조회 ResultSet rset = stmt.executequery(sqlstr2); while (rset.next()) { // 다음 SQL 실행결과가있는경우 %> <tr> <td><%= rset.getstring("author") %></td> <td><%= rset.getstring("title") %></td> <td><%= rset.getint("price") %>won</td> <td><%= rset.getint("qty") %></td> </tr> Web Programming Networking Laboratory 28/30
29 MySQL - JSP Example (9/9) ebookshop (9/9) order_result.jsp <% } rset.close(); } // 연결종료 stmt.close(); conn.close(); } %> </table> <a href="order.jsp"> <h3> 주문화면으로돌아가기 </h3> </a> </body> </html> Web Programming Networking Laboratory 29/30
30 Q & A Web Programming Networking Laboratory 30/30
First Simple Interactive JSP example
Let s look at our first simple interactive JSP example named hellojsp.jsp. In his Hello User example, the HTML page takes a user name from a HTML form and sends a request to a JSP page, and JSP page generates
More informationCSE 135. Three-Tier Architecture. Applications Utilizing Databases. Browser. App. Server. Database. Server
CSE 135 Applications Utilizing Databases Three-Tier Architecture Located @ Any PC HTTP Requests Browser HTML Located @ Server 2 App Server JDBC Requests JSPs Tuples Located @ Server 1 Database Server 2
More informationJSP (Java Server Page)
JSP (Java Server Page) http://www.jsptut.com/ http://www.jpgtutorials.com/introduction-to-javaserver-pages-jsp Lab JSP JSP simply puts Java inside HTML pages. Hello!
More informationThree-Tier Architecture
Three-Tier Architecture Located @ Any PC HTTP Requests Microsoft Internet Explorer HTML Located @ Your PC Apache Tomcat App Server Java Server Pages (JSPs) JDBC Requests Tuples Located @ DBLab MS SQL Server
More informationPrinciples and Techniques of DBMS 6 JSP & Servlet
Principles and Techniques of DBMS 6 JSP & Servlet Haopeng Chen REliable, INtelligent and Scalable Systems Group (REINS) Shanghai Jiao Tong University Shanghai, China http://reins.se.sjtu.edu.cn/~chenhp
More informationConstruction d Applications Réparties / Master MIAGE
Construction d Applications Réparties / Master MIAGE Java EE - JSF Giuseppe Lipari CRiSTAL, Université de Lille March 23, 2016 Outline JSP JSTL tags Data persistence Database mapping layer Outline JSP
More informationExperiment No: Group B_2
Experiment No: Group B_2 R (2) N (5) Oral (3) Total (10) Dated Sign Problem Definition: A Web application for Concurrent implementation of ODD-EVEN SORT is to be designed using Real time Object Oriented
More informationDatabase Systems Lab. 11. JSP I 충남대학교컴퓨터공학과 데이타베이스시스템연구실
데이타베이스시스템연구실 Database Systems Lab. 11. JSP I 충남대학교컴퓨터공학과 데이타베이스시스템연구실 Overview http://www.tutorialspoint.com/jsp/index.htm What is JavaServer Pages? JavaServer Pages (JSP) is a server-side programming
More informationIntroduction. This course Software Architecture with Java will discuss the following topics:
Introduction This course Software Architecture with Java will discuss the following topics: Java servlets Java Server Pages (JSP s) Java Beans JDBC, connections to RDBMS and SQL XML and XML translations
More informationICOM 5016 Database Systems. Database Users. User Interfaces and Tools. Chapter 8: Application Design and Development.
Chapter 8: Application Design and Development ICOM 5016 Database Systems Web Application Amir H. Chinaei Department of Electrical and Computer Engineering University of Puerto Rico, Mayagüez User Interfaces
More informationJSP - SYNTAX. Any text, HTML tags, or JSP elements you write must be outside the scriptlet. Following is the simple and first example for JSP:
http://www.tutorialspoint.com/jsp/jsp_syntax.htm JSP - SYNTAX Copyright tutorialspoint.com This tutorial will give basic idea on simple syntax ie. elements involved with JSP development: The Scriptlet:
More informationCourse Topics. The Three-Tier Architecture. Example 1: Airline reservations. IT360: Applied Database Systems. Introduction to PHP
Course Topics IT360: Applied Database Systems Introduction to PHP Database design Relational model SQL Normalization PHP MySQL Database administration Transaction Processing Data Storage and Indexing The
More informationIntroduction. Literature: Steelman & Murach, Murach s Java Servlets and JSP. Mike Murach & Associates Inc, 2003
Introduction This course Software Architecture with Java will discuss the following topics: Java servlets Java Server Pages (JSP s) Java Beans JDBC, connections to RDBMS and SQL XML and XML translations
More informationCSC309: Introduction to Web Programming. Lecture 13
CSC309: Introduction to Web Programming Lecture 13 Wael Aboulsaadat University of Toronto Web-apps Architecture University of Toronto 2 N-Tier model + MQ + SP Presentation Layer HTML/CSS/JS/JSP/... Presentation
More informationSQL-PL Interface. Murali Mani. Perl /CGI with Oracle/mySQL Install your own web server and use servlets with JDBC and Oracle/mySQL
SQL-PL Interface Some Possible Options Web Interface Perl /CGI with Oracle/mySQL Install your own web server and use servlets with JDBC and Oracle/mySQL Non-Web Interface JDBC with Oracle/mySQL Also other
More informationGroup A: Assignment No 2
Group A: Assignment No 2 Regularity (2) Performance(5) Oral(3) Total (10) Dated Sign Title of Assignment: SQL Joins in MySQL using 3-tier Problem Definition: DBMS using connections ( Client-application
More informationAdvantage of JSP over Servlet
JSP technology is used to create web application just like Servlet technology. It can be thought of as an extension to servlet because it provides more functionality than servlet such as expression language,
More informationJSP CSCI 201 Principles of Software Development
JSP CSCI 201 Principles of Software Development Jeffrey Miller, Ph.D. jeffrey.miller@usc.edu Outline JSP Program USC CSCI 201L JSP 3-Tier Architecture Client Server Web/Application Server Database USC
More information2. Follow the installation directions and install the server on ccc. 3. We will call the root of your installation as $TOMCAT_DIR
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
More informationTutorial: Using Java/JSP to Write a Web API
Tutorial: Using Java/JSP to Write a Web API Contents 1. Overview... 1 2. Download and Install the Sample Code... 2 3. Study Code From the First JSP Page (where most of the code is in the JSP Page)... 3
More information( A ) 8. If the address of an array is stored in $value, how do you get the values of this array? (B) \$value (C) &$value (D) $$value
CS 665 Information Delivery on the Internet Final Exam - Name: Fall 2002 Part 1: (75 points - 3 points for each problem) ( A ) 1. What protocol is used by all Web communications transactions? (A) HTTP
More informationUNIT -5. Java Server Page
UNIT -5 Java Server Page INDEX Introduction Life cycle of JSP Relation of applet and servlet with JSP JSP Scripting Elements Difference between JSP and Servlet Simple JSP program List of Questions Few
More informationJavaServer Pages (JSP)
JavaServer Pages (JSP) The Context The Presentation Layer of a Web App the graphical (web) user interface frequent design changes usually, dynamically generated HTML pages Should we use servlets? No difficult
More informationservlets and Java JSP murach s (Chapter 4) TRAINING & REFERENCE Mike Murach & Associates Andrea Steelman Joel Murach
Chapter 4 How to develop JavaServer Pages 97 TRAINING & REFERENCE murach s Java servlets and (Chapter 4) JSP Andrea Steelman Joel Murach Mike Murach & Associates 2560 West Shaw Lane, Suite 101 Fresno,
More informationCopyright 2011 Sakun Sharma
Maintaining Sessions in JSP We need sessions for security purpose and multiuser support. Here we are going to use sessions for security in the following manner: 1. Restrict user to open admin panel. 2.
More informationWeb Programming. Dr Walid M. Aly. Lecture 10 PHP. lec10. Web Programming CS433/CS614 22:32. Dr Walid M. Aly
Web Programming Lecture 10 PHP 1 Purpose of Server-Side Scripting database access Web page can serve as front-end to a database Ømake requests from browser, Øpassed on to Web server, Øcalls a program to
More informationChettinad College of Engineering and Technology CHETTINAD COLLEGE OF ENGINEERING AND TECHNOLOGY DEPARTMENT OF COMPUTER SCIENCE AND TECHNOLOGY
CHETTINAD COLLEGE OF ENGINEERING AND TECHNOLOGY DEPARTMENT OF COMPUTER SCIENCE AND TECHNOLOGY UNIT IV SERVLETS 1. What is Servlets? a. Servlets are server side components that provide a powerful mechanism
More informationPES INSTITUTE OF TECHNOLOGY, SOUTH CAMPUS DEPARTMENT OF MCA INTERNAL TEST (SCHEME AND SOLUTION) II
PES INSTITUTE OF TECHNOLOGY, SOUTH CAMPUS DEPARTMENT OF MCA INTERNAL TEST (SCHEME AND SOLUTION) II Subject Name: Advanced JAVA programming Subject Code: 13MCA42 Time: 11:30-01:00PM Max.Marks: 50M ----------------------------------------------------------------------------------------------------------------
More informationY ou must have access to a JSP-compatible Web server
JSP-COMPATIBLE WEB SERVERS Y ou must have access to a JSP-compatible Web server before beginning to develop JavaServer Pages code. There are several JSP-compatible Web servers to choose from and most of
More informationPorting a Web Application to Hibernate Environment
Porting a Web Application to Hibernate Environment By Shiva Somishetty Problem Report submitted to the College of Engineering and Mineral Resources at West Virginia University in partial fulfillment of
More informationCOMP9321 Web Application Engineering
COMP9321 Web Application Engineering Semester 2, 2015 Dr. Amin Beheshti Service Oriented Computing Group, CSE, UNSW Australia Week 3 http://webapps.cse.unsw.edu.au/webcms2/course/index.php?cid=2411 1 Review:
More informationStatic Webpage Development
Dear Student, Based upon your enquiry we are pleased to send you the course curriculum for PHP Given below is the brief description for the course you are looking for: - Static Webpage Development Introduction
More informationServlet 5.1 JDBC 5.2 JDBC
5 Servlet Java 5.1 JDBC JDBC Java DataBase Connectivity Java API JDBC Java Oracle, PostgreSQL, MySQL Java JDBC Servlet OpenOffice.org ver. 2.0 HSQLDB HSQLDB 100% Java HSQLDB SQL 5.2 JDBC Java 1. JDBC 2.
More informationUnit 5 JSP (Java Server Pages)
Java Server Pages (JSP) is a server-side programming technology that enables the creation of dynamic, platform-independent method for building Web-based applications. It focuses more on presentation logic
More informationJava Database Connectivity (JDBC) 25.1 What is JDBC?
PART 25 Java Database Connectivity (JDBC) 25.1 What is JDBC? JDBC stands for Java Database Connectivity, which is a standard Java API for database-independent connectivity between the Java programming
More informationAdv. Web Technology 3) Java Server Pages
Adv. Web Technology 3) Java Server Pages Emmanuel Benoist Fall Term 2016-17 Berner Fachhochschule Haute cole spcialise bernoise Berne University of Applied Sciences 1 Presentation of the Course I Introduction
More informationJSP. Basic Elements. For a Tutorial, see:
JSP Basic Elements For a Tutorial, see: http://java.sun.com/j2ee/1.4/docs/tutorial/doc/jspintro.html Simple.jsp JSP Lifecycle Server Web
More informationCOMP9321 Web Application Engineering
COMP9321 Web Application Engineering Java Server Pages (JSP) Dr. Basem Suleiman Service Oriented Computing Group, CSE, UNSW Australia Semester 1, 2016, Week 3 http://webapps.cse.unsw.edu.au/webcms2/course/index.php?cid=2442
More informationDEZVOLTAREA APLICATIILOR WEB CURS 7. Lect. Univ. Dr. Mihai Stancu
DEZVOLTAREA APLICATIILOR WEB CURS 7 Lect. Univ. Dr. Mihai Stancu S u p o r t d e c u r s suport (Beginning JSP, JSF and Tomcat) Capitolul 3 JSP Application Architectures DEZVOLTAREA APLICATIILOR WEB CURS
More informationWeb development using PHP & MySQL with HTML5, CSS, JavaScript
Web development using PHP & MySQL with HTML5, CSS, JavaScript Static Webpage Development Introduction to web Browser Website Webpage Content of webpage Static vs dynamic webpage Technologies to create
More information6- JSP pages. Juan M. Gimeno, Josep M. Ribó. January, 2008
6- JSP pages Juan M. Gimeno, Josep M. Ribó January, 2008 Contents Introduction to web applications with Java technology 1. Introduction. 2. HTTP protocol 3. Servlets 4. Servlet container: Tomcat 5. Web
More informationInf 202 Introduction to Data and Databases (Spring 2010)
Inf 202 Introduction to Data and Databases (Spring 2010) Jagdish S. Gangolly Informatics CCI SUNY Albany April 22, 2010 Database Processing Applications Standard Database Processing Client/Server Environment
More informationJava Server Pages. JSP Part II
Java Server Pages JSP Part II Agenda Actions Beans JSP & JDBC MVC 2 Components Scripting Elements Directives Implicit Objects Actions 3 Actions Actions are XML-syntax tags used to control the servlet engine
More informationCOMP102: Introduction to Databases, 23
COMP102: Introduction to Databases, 23 Dr Muhammad Sulaiman Khan Department of Computer Science University of Liverpool U.K. 04 April, 2011 Programming with SQL Specific topics for today: Client/Server
More informationCIS 339 Section 2. What is JavaScript
CIS 339 Section 2 Introduction to JavaScript 9/26/2001 2001 Paul Wolfgang 1 What is JavaScript An interpreted programming language with object-oriented capabilities. Shares its syntax with Java, C++, and
More information3. The pool should be added now. You can start Weblogic server and see if there s any error message.
CS 342 Software Engineering Lab: Weblogic server (w/ database pools) setup, Servlet, XMLC warming up Professor: David Wolber (wolber@usfca.edu), TA: Samson Yingfeng Su (ysu@cs.usfca.edu) Setup Weblogic
More informationHow to program applications. CS 2550 / Spring 2006 Principles of Database Systems. SQL is not enough. Roadmap
How to program applications CS 2550 / Spring 2006 Principles of Database Systems 05 SQL Programming Using existing languages: Embed SQL into Host language ESQL, SQLJ Use a library of functions Design a
More informationCourse Topics. IT360: Applied Database Systems. Introduction to PHP
IT360: Applied Database Systems Introduction to PHP Chapter 1 and Chapter 6 in "PHP and MySQL Web Development" Course Topics Relational model SQL Database design Normalization PHP MySQL Database administration
More informationAppendix A: Experimental Setup
Page112 Appendix A: Experimental Setup A Experiments are Run on Intel Core i3 CPU, 540@3.07 GHz Processor 4.00 GB RAM Windows XP Operating System Oracle 10g is used in all Experiments - ETL Processes Operations
More informationUnit 4. CRM - Web Marketing 4-1
Unit 4. CRM - Web Marketing What This Unit Is About Identify/utilize the components of the framework to build and run Web Marketing solutions What You Should Be Able to Do After completing this unit, you
More informationCOMP9321 Web Application Engineering
COMP9321 Web Application Engineering Semester 2, 2017 Dr. Amin Beheshti Service Oriented Computing Group, CSE, UNSW Australia Week 3 http://webapps.cse.unsw.edu.au/webcms2/course/index.php?cid=2465 1 Review:
More informationServlet and JSP Review
2006 Marty Hall Servlet and JSP Review A Recap of the Basics 2 JSP, Servlet, Struts, JSF, AJAX, & Java 5 Training: http://courses.coreservlets.com J2EE Books from Sun Press: http://www.coreservlets.com
More informationPHP Tutorial 6(a) Using PHP with MySQL
Objectives After completing this tutorial, the student should have learned; The basic in calling MySQL from PHP How to display data from MySQL using PHP How to insert data into MySQL using PHP Faculty
More informationPARTIAL Final Exam Reference Packet
PARTIAL Final Exam Reference Packet (Note that some items here may be more pertinent than others; you'll need to be discerning.) Example 1 - St10CommonImportTop.jsp (with comments removed)
More informationCE212 Web Application Programming Part 3
CE212 Web Application Programming Part 3 30/01/2018 CE212 Part 4 1 Servlets 1 A servlet is a Java program running in a server engine containing methods that respond to requests from browsers by generating
More informationUsing htmlarea & a Database to Maintain Content on a Website
Using htmlarea & a Database to Maintain Content on a Website by Peter Lavin December 30, 2003 Overview If you wish to develop a website that others can contribute to one option is to have text files sent
More informationLab 7 Introduction to MySQL
Lab 7 Introduction to MySQL Objectives: During this lab session, you will - Learn how to access the MySQL Server - Get hand-on experience on data manipulation and some PHP-to-MySQL technique that is often
More informationEnterprise Java Unit 1- Chapter 6 Prof. Sujata Rizal
Introduction JDBC is a Java standard that provides the interface for connecting from Java to relational databases. The JDBC standard is defined by Sun Microsystems and implemented through the standard
More informationSummary 4/5. (contains info about the html)
Summary Tag Info Version Attributes Comment 4/5
More informationOracle Database 10g Java Web
Oracle Database 10g Java Web 2005 5 Oracle Database 10g Java Web... 3... 3... 4... 4... 4 JDBC... 5... 5... 5 JDBC... 6 JDBC... 8 JDBC... 9 JDBC... 10 Java... 11... 12... 12... 13 Oracle Database EJB RMI/IIOP...
More informationJSP source code runs on the web server via JSP Servlet Engine. JSP files are HTML files with special Tags
JSP : Java Server Pages It is a server side scripting language. JSP are normal HTML with Java code pieces embedded in them. A JSP compiler is used to generate a Servlet from the JSP page. JavaServer Pages
More informationUnit 4 Java Server Pages
Q1. List and Explain various stages of JSP life cycle. Briefly give the function of each phase. Ans. 1. A JSP life cycle can be defined as the entire process from its creation till the destruction. 2.
More informationSecurity Guide. Configuration of Permissions
Guide Configuration of Permissions 1 Content... 2 2 Concepts of the Report Permissions... 3 2.1 Security Mechanisms... 3 2.1.1 Report Locations... 3 2.1.2 Report Permissions... 3 2.2 System Requirements...
More informationRunning SQL in Java and PHP
Running SQL in Java and PHP FCDB 9.6 9.7 Dr. Chris Mayfield Department of Computer Science James Madison University Feb 28, 2018 Introduction to JDBC JDBC = Java Database Connectivity 1. Connect to the
More informationWeb Programming. Based on Notes by D. Hollinger Also Java Network Programming and Distributed Computing, Chs.. 9,10 Also Online Java Tutorial, Sun.
Web Programming Based on Notes by D. Hollinger Also Java Network Programming and Distributed Computing, Chs.. 9,10 Also Online Java Tutorial, Sun. 1 World-Wide Wide Web (Tim Berners-Lee & Cailliau 92)
More informationSubject Name: Advanced Web Programming Subject Code: (13MCA43) 1. what is PHP? Discuss different control statements
PES Institute of Technology, Bangalore South Campus (Formerly PES School of Engineering) (Hosur Road, 1KM before Electronic City, Bangalore-560 100) Dept of MCA INTERNAL TEST (SCHEME AND SOLUTION) 2 Subject
More informationExercise. (1) Which of the following can not be used as the scope when using a JavaBean with JSP? a. application b. session c. request d.
Exercise 1. Choose the best answer for each of the following questions. (1) Which of the following can not be used as the scope when using a JavaBean with JSP? a. application b. session c. request d. response
More informationDEV BHOOMI INSTITUTE OF TECHNOLOGY Department of Computer Science and Engineering. Algorithm lab- PCS-553 LAB MANUAL
Department of Computer Science and Engineering Year: 3rd Semester: 5th Algorithm lab- PCS-553 Prepared By: HOD(CSE) 1 Department of Computer Science and Engineering INDEX S.No Practical s Name Tools Remark
More informationDesigning a Persistence Framework
Designing a Persistence Framework Working directly with code that uses JDBC is low-level data access; As application developers, one is more interested in the business problem that requires this data access.
More informationCreating Web Pages Using HTML
Creating Web Pages Using HTML HTML Commands Commands are called tags Each tag is surrounded by Some tags need ending tags containing / Tags are not case sensitive, but for future compatibility, use
More informationServer-side Web Programming
Server-side Web Programming Lecture 14: Efficient and Safe Database Access on Web Servers Synchronized Database Access Many updates can occur simultaneously on busy sites Can interfere with one another
More informationDatabase Connectivity using PHP Some Points to Remember:
Database Connectivity using PHP Some Points to Remember: 1. PHP has a boolean datatype which can have 2 values: true or false. However, in PHP, the number 0 (zero) is also considered as equivalent to False.
More informationPRODUCT DOCUMENTATION. Installing and Implementing Enterprise Contact Center Chat RELEASE 5.1
PRODUCT DOCUMENTATION Installing and Implementing Enterprise Contact Center Chat RELEASE 5.1 Document and Software Copyrights Copyright 1998 2009 ShoreTel, Inc. All rights reserved. Printed in the United
More informationゼミ Wiki の再構築について 資料編 加納さおり
Wiki [ Fukuda Semi Wiki] [ 2 wiki] [ 3 ] [ 4 ] [ 5 ] [ 6 ] [ 7 ] [ 8 ] [ 9 ] [ 10 ] [ 11 ] [ 12 ] [ 13 ] [ 14 Menu1] [ 15 Menu2] [ 16 Menu3] [ 17 wiki Menu] [ 18 TOP ] [ 19 ] [ 20 ] [ 20] [ 21 ] [ 22 (
More informationdirective attribute1= value1 attribute2= value2... attributen= valuen %>
JSP Standard Syntax Besides HTML tag elements, JSP provides four basic categories of constructors (markup tags): directives, scripting elements, standard actions, and comments. You can author a JSP page
More informationSchool of Information and Computer Technology Sirindhorn International Institute of Technology Thammasat University
School of Information and Computer Technology Sirindhorn International Institute of Technology Thammasat University ITS351 Database Programming Laboratory Laboratory #9: PHP & Form Processing III Objective:
More informationEnterprise Knowledge Platform Adding the Login Form to Any Web Page
Enterprise Knowledge Platform Adding the Login Form to Any Web Page EKP Adding the Login Form to Any Web Page 21JAN03 2 Table of Contents 1. Introduction...4 Overview... 4 Requirements... 4 2. A Simple
More informationCMPUT 391 Database Management Systems. JDBC in Review. - Lab 2 -
CMPUT 391 Database Management Systems JDBC in Review - - Department of Computing Science University of Alberta What Is JDBC? JDBC is a programming interface JDBC allows developers using java to gain access
More informationLab1: Stateless Session Bean for Registration Fee Calculation
Registration Fee Calculation The Lab1 is a Web application of conference registration fee discount calculation. There may be sub-conferences for attendee to select. The registration fee varies for different
More informationHTML Tables and Forms. Outline. Review. Review. Example Demo/ Walkthrough. CS 418/518 Web Programming Spring Tables to Display Data"
CS 418/518 Web Programming Spring 2014 HTML Tables and Forms Dr. Michele Weigle http://www.cs.odu.edu/~mweigle/cs418-s14/ Outline! Assigned Reading! Chapter 4 "Using Tables to Display Data"! Chapter 5
More informationCOP4540 TUTORIAL PROFESSOR: DR SHU-CHING CHEN TA: H S IN-YU HA
COP4540 TUTORIAL PROFESSOR: DR SHU-CHING CHEN TA: H S IN-YU HA OUTLINE Postgresql installation Introduction of JDBC Stored Procedure POSTGRES INSTALLATION (1) Extract the source file Start the configuration
More informationINSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad
INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad - 500 043 INFORMATION TECHNOLOGY TUTORIAL QUESTION BANK Course Name Course Code Class Branch : Web Technologies : ACS006 : B. Tech
More informationHTML crashcourse. general structure tables forms textfield textarea selectbox listbox hidden field checkbox radiobuttons submit button
HTML crashcourse general structure tables forms textfield textarea selectbox listbox hidden field checkbox radiobuttons submit button Andreas Schmidt HTML Crash-Kurs 1/10 general structure
More informationLING 408/508: Computational Techniques for Linguists. Lecture 21
LING 408/508: Computational Techniques for Linguists Lecture 21 Administrivia Both Homework 7 and 8 have been graded Homework 9 today Example: example.cgi SiteSites$./example.cgi Content-Type: text/html;
More informationCreating a Simple Web Application Using a MySQL Database
1 z 24 2014-11-18 14:30 Creating a Simple Web Application Using a MySQL Database Written by Troy Giunipero This document describes how to create a simple web application that connects to a MySQL database
More informationChapter4: HTML Table and Script page, HTML5 new forms. Asst. Prof. Dr. Supakit Nootyaskool Information Technology, KMITL
Chapter4: HTML Table and Script page, HTML5 new forms Asst. Prof. Dr. Supakit Nootyaskool Information Technology, KMITL Objective To know HTML5 creating a new style form. To understand HTML table benefits
More informationAPPLYING INTERACTIVE WEB PAGES
APPLYING INTERACTIVE WEB PAGES Item Type text; Proceedings Authors Self, Lance Publisher International Foundation for Telemetering Journal International Telemetering Conference Proceedings Rights Copyright
More informationDatabases on the web
Databases on the web The Web Application Stack Network Server You The Web Application Stack Network Server You The Web Application Stack Web Browser Network Server You The Web Application Stack Web Browser
More informationAbout the Authors. Who Should Read This Book. How This Book Is Organized
Acknowledgments p. XXIII About the Authors p. xxiv Introduction p. XXV Who Should Read This Book p. xxvii Volume 2 p. xxvii Distinctive Features p. xxviii How This Book Is Organized p. xxx Conventions
More informationSession 21. Expression Languages. Reading. Java EE 7 Chapter 9 in the Tutorial. Session 21 Expression Languages 11/7/ Robert Kelly,
Session 21 Expression Languages 1 Reading Java EE 7 Chapter 9 in the Tutorial 2 11/7/2018 1 Lecture Objectives Understand how Expression Languages can simplify the integration of data with a view Know
More informationCopyright 2005, by Object Computing, Inc. (OCI). All rights reserved. Database to Web
Database To Web 10-1 The Problem Need to present information in a database on web pages want access from any browser may require at least HTML 4 compatibility Want to separate gathering of data from formatting
More informationCreate Basic Databases and Integrate with a Website Lesson 3
Create Basic Databases and Integrate with a Website Lesson 3 Combining PHP and MySQL This lesson presumes you have covered the basics of PHP as well as working with MySQL. Now you re ready to make the
More informationREGEX HELPER USER MANUAL CONTENTS
REGEX HELPER USER MANUAL CONTENTS 1. ABOUT REGEX HELPER 2. SYSTEM REQUIREMENTS 3. DEPLOYING REGEX HELPER 4. MAIN USER INTERFACE 5. USAGE AND FUNCTIONALITY 6. SAMPLE USE CASE (With Screenshots) ABOUT REGEX
More informationCICS 515 b Internet Programming Week 2. Mike Feeley
CICS 515 b Internet Programming Week 2 Mike Feeley 1 Software infrastructure stuff MySQL and PHP store files in public_html run on remote.mss.icics.ubc.ca access as http://ws.mss.icics.ubc.ca/~username/...
More informationsessionx Desarrollo de Aplicaciones en Red A few more words about CGI CGI Servlet & JSP José Rafael Rojano Cáceres
sessionx Desarrollo de Aplicaciones en Red José Rafael Rojano Cáceres http://www.uv.mx/rrojano A few more words about Common Gateway Interface 1 2 CGI So originally CGI purpose was to let communicate a
More information1. PhP Project. Create a new PhP Project as shown below and click next
1. PhP Project Create a new PhP Project as shown below and click next 1 Choose Local Web Site (Apache 24 needs to be installed) Project URL is http://localhost/projectname Then, click next We do not use
More informationControlled Assessment Task. Question 1 - Describe how this HTML code produces the form displayed in the browser.
Controlled Assessment Task Question 1 - Describe how this HTML code produces the form displayed in the browser. The form s code is displayed in the tags; this creates the object which is the visible
More informationCh04 JavaServer Pages (JSP)
Ch04 JavaServer Pages (JSP) Introduce concepts of JSP Web components Compare JSP with Servlets Discuss JSP syntax, EL (expression language) Discuss the integrations with JSP Discuss the Standard Tag Library,
More informationAdvanced HTML 5.1 INTRODUCTION 5.2 OBJECTIVES
5 Advanced HTML 5.1 INTRODUCTION An effective way to organize web documents, visually, and also logically, by dividing the page into different parts is the necessity of the website today. In each part
More informationDocument for Consuming Web-Service In.NET & JAVA
Document for Consuming Web-Service In.NET & JAVA Delhi e-governance Society, Department of Information Technology, Government of Delhi 9 th Level B Wing Delhi Secretariat 1 Background: Ministry of Electronics
More information