© Copyright 1992-2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Tutorial 30 – Bookstore Application: Client Tier Introducing.

Slides:



Advertisements
Similar presentations
4. Internet Programming ENG224 INFORMATION TECHNOLOGY – Part I
Advertisements

Learning HTML. > Title of page This is my first homepage. Tells Browser This is an HTML page Basic Tags Tells Browser End of HTML page Header information.
 2002 Prentice Hall. All rights reserved. Chapter 9: Servlets Outline 9.1 Introduction 9.2 Servlet Overview and Architecture Interface Servlet and.
 2003 Prentice Hall, Inc. All rights reserved. Chapter 4 - Introduction to XHTML: Part 1 Outline 4.1 Introduction 4.2 Editing XHTML 4.3 First XHTML Example.
CM143 - Web Week 2 Basic HTML. Links and Image Tags.
 2008 Pearson Education, Inc. All rights reserved. 1 Introduction to HTML.
 2004 Prentice Hall, Inc. All rights reserved. Introduction to XHTML: Part 1.
 2003 Prentice Hall, Inc. All rights reserved. Chapter 4 - Introduction to XHTML: Part 1 Outline 4.1 Introduction 4.2 Editing XHTML 4.3 First XHTML Example.
Chapter 2 Introduction to HTML5 Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
Basics of HTML Shashanka Rao. Learning Objectives 1. HTML Overview 2. Head, Body, Title and Meta Elements 3.Heading, Paragraph Elements and Special Characters.
HTML Links and Anchors.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved Bookstore Web Application Introducing Visual Web Developer 2008 Express and the.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Outline 29.1 Multi-Tier Architecture 29.2 Web Servers.
1 Outline 3.1 Introduction 3.2 Editing HTML 3.3 First HTML Example 3.4 W3C HTML Validation Service 3.5 Headers 3.6 Linking 3.7 Images 3.8 Special Characters.
Chapter 16 The World Wide Web. 2 The Web An infrastructure of information combined and the network software used to access it Web page A document that.
Basic HTML Hyper text markup Language. Re-cap  … - The tag tells the browser that this is an HTML document The html element is the outermost element.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Introducing Web Controls Outline 29.1 Analyzing the.
1 XHTML Forms A form is the mechanism to –Collect information from a browser user –Transmit collected information from a browser to a server HTML/XHTML.
WEB DESIGN USING DREAMWEAVER. The World Wide Web –A Web site is a group of related files organized around a common topic –A Web page is a single file.
1 Essential HTML coding By Fadi Safieddine (Week 2)
Web Development University of Khartoum. Web Development Web Programming Web Design University of Khartoum.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML Pt. 2.
Images in HTML PowerPoint How images are used in HTML.
 2002 Prentice Hall, Inc. All rights reserved.2 Chapter 2 — Introduction to HyperText Markup Language 4: Part I Outline 2.1Introduction 2.2Markup Languages.
>> Introduction to HTML: Tags. Hyper - is the opposite of linear Text – words / sentences / paragraphs Mark-up – Marking the text Language – It is a language.
1 CSC 121 Computers and Scientific Thinking David Reed Creighton University HTML and Web Pages.
 2002 Prentice Hall. All rights reserved. Chapter 17: Enterprise Java Case Study: Architectural Overview Outline 17.1 Introduction 17.2 Deitel Bookstore.
Introduction to HTML. What is a HTML File?  HTML stands for Hyper Text Markup Language  An HTML file is a text file containing small markup tags  The.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
1 Introduction to HTML: Part 1 Outline Introduction Elements and Attributes Editing HTML Common Elements Headers Images Unordered Lists Nested and Ordered.
What is Markup and Markup Languages? What is HTML? A Basic HTML Document Basic HTML Tags Tag Attributes and Text Formatting Tags Insert Hyperlinks Add.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Tutorial 30 – Bookstore Application: Client Tier Examining.
INTRODUCTION. What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is not a programming language,
Copyright 2007, Information Builders. Slide 1 Understanding Basic HTML Amanda Regan Technical Director June, 2008.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Outline 32.1 Reviewing the Bookstore Application 32.2.
Ali Alshowaish. What is HTML? HTML stands for Hyper Text Markup Language Specifically created to make World Wide Web pages Web authoring software language.
1 Introduction to XHTML: Part 1 Outline Introduction Elements and Attributes Editing XHTML Common Elements W3C XHTML Validation Service Headers Linking.
PART 1: INTRODUCTION TO BLOG Instructor: Mr Rizal Arbain FB:Facebook/rizal.arbain Website: H/P: Ibnu.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Outline 31.1 Reviewing the Bookstore Application 31.2.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved Bookstore Application: Middle Tier Introducing Code-Behind Files, Session State.
HTML Basic. What is HTML HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is not a programming language, it.
HTML (Hyper Text Markup Language) Lecture II. Review Writing HTML files for web pages – efficient compact – fundamental. Text files with htm extension.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved Bookstore Web Application: Client Tier Introducing Web Controls.
Web Authoring with Dreamweaver. Unit Objectives  Be able to define keywords: HTML, HTTP (protocol), browser, web server, client/server, tag, attribute,
Session: 4. © Aptech Ltd. 2Creating Hyperlinks and Anchors / Session 4  Describe hyperlinks  Explain absolute and relative paths  Explain how to hyperlink.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
HTML Overview.  Students will learn: How HTML tagging works How browsers display tagged documents How an HTML document is structured.
Basics of Web Design 1 Copyright © 2016 Pearson Education, Inc., Hoboken NJ.
HTML Tutorial. What is HTML HTML is a markup language for describing web documents (web pages) HTML documents are described by HTML tags Each HTML tag.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
HTML Help book. HTML HTML is the programming language used to make web pages for the Internet. HTML stands for Hyper Text Markup Language. HTML is made.
 2001 Prentice Hall, Inc. All rights reserved. 1 Chapter 22 - i-mode Outline 22.1 Introduction 22.2 Japan’s Telecommunications Industry and Infrastructure.
Introduction to HTML.
Web Basics: HTML/CSS/JavaScript What are they?
HTML Basics.
HTML basics
Computing with C# and the .NET Framework
Images in HTML PowerPoint How images are used in HTML
COMPUTING FUNDAMENTALS
IS333: MULTI-TIER APPLICATION DEVELOPMENT
Basic HTML and Embed Codes
Internet Technologies I - Lect.01 - Waleed Ibrahim Osman
Pertemuan 1b
Pertemuan 1 Desain web Pertemuan 1
Images in HTML PowerPoint How images are used in HTML
Presentation transcript:

© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Tutorial 30 – Bookstore Application: Client Tier Introducing HTML Outline 30.1 Analyzing the Bookstore Application 30.2 Creating JavaServer Pages 30.3 Creating the books.jsp Page 30.4 Creating the bookInformation.jsp Page 30.5 Wrap-Up

© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 2 Objective In this tutorial, you will learn to: –Create a JSP Web Application. –Create and design JSP pages. –Use HTML form controls and other HTML elements. –Use these technologies to implement the client tier of a three-tier web-based application.

© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved Analyzing the Bookstore Application When the books.jsp page is requested Retrieve the book titles from the database Display the book titles in an HTML menu If the user selects a book title from the menu and clicks the View Information (submit) button Request the bookInformation.jsp page for the selected title When the bookInformation.jsp page is requested from books.jsp Retrieve the selected book’s information from a database for the selected title Format the retrieved information in the bookInformation.jsp page Return the result to the client browser If the user clicks the Book List link on the bookInformation.jsp page Request the books.jsp page

© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved Analyzing the Bookstore Application (Cont.)

© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved Analyzing the Bookstore Application (Cont.)

© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved Creating JavaServer Pages JavaServer pages look like HTML –Include HTML markup and JSP code

© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved Creating the books.jsp Page HTML comment – HTML markup –Elements –Start tag –End tag –title element –head element

© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved Creating the books.jsp Page (Cont.) Figure 30.2 Adding the title to the JSP. Setting the JSP’s title

© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved Creating the books.jsp Page (Cont.) Figure 30.3 Adding a heading to the JSP. Adding an h1 header element body element header elements —h1

© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved Creating the books.jsp Page (Cont.) Figure 30.4 Creating a form in the JSP. Creating an HTML form form element

© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved Creating the books.jsp Page (Cont.) Figure 30.5 Creating a paragraph text in the JSP. Creating a paragraph of text paragraph tags ( and ) p element

© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved Creating the books.jsp Page (Cont.) Figure 30.6 Creating an empty select statement in the JSP. Creating an HTML menu control select element (HTML menu control) —name attribute

© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved Creating the books.jsp Page (Cont.) Figure 30.7 Adding the "submit" button to the JSP. input element —type attribute —"submit" button —value attribute Adding a " submit " button

© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved Creating the books.jsp Page (Cont.) Figure 30.8 Updated JSP with an HTML form. Header ( h1 ) elementParagraph ( p ) elementHTML menu control ( select element) " submit " button ( input element of type " submit " )

© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved Creating the bookInformation.jsp Page Figure 30.9 Adding a title to bookInformation.jsp. Setting the JSP’s title

© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved Creating the bookInformation.jsp Page (Cont.) Figure Adding the header that will specify the book title. Adding an h1 header element

© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved Creating the bookInformation.jsp Page (Cont.) Figure Adding the img element that will specify the book’s cover. img element —src attribute —alt attribute Adding an image to the JSP

© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved Creating the bookInformation.jsp Page (Cont.) Figure Adding the authors paragraph. Adding the authors paragraph

© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved Creating the bookInformation.jsp Page (Cont.) Figure Adding the price paragraph. Adding the price paragraph

© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved Creating the bookInformation.jsp Page (Cont.) Figure Adding the ISBN paragraph. Adding the ISBN paragraph

© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved Creating the bookInformation.jsp Page (Cont.) Figure Adding the edition paragraph. Adding the edition paragraph

© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved Creating the bookInformation.jsp Page (Cont.) Figure Adding the copyright year paragraph. Adding the copyright year paragraph

© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved Creating the bookInformation.jsp Page (Cont.) Figure Adding the description paragraph. Adding the description paragraph

© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved Creating the bookInformation.jsp Page (Cont.) Figure Adding the Book List hyperlink. Adding a hyperlink Hyperlink –a (anchor) element –href (hyperlink reference) attribute –relative URL

© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved Creating the bookInformation.jsp Page Figure Displaying the bookInformation.jsp and linking to books.jsp. Result of img element at line 21 Result of hyperlink at line 42

 2004 Prentice Hall, Inc. All rights reserved. Outline 26 books.jsp (1 of 2) Book List Available Books 17 Setting the JSP’s titleAdding an h1 header element

 2004 Prentice Hall, Inc. All rights reserved. Outline 27 books.jsp (2 of 2) Select a book from the list and click the button to 22 view the selected book's information Adding an HTML form that contains a paragraph, a drop- down list and a " submit " button

 2004 Prentice Hall, Inc. All rights reserved. Outline 28 bookInformation.jsp (1 of 2) Book Information Authors: 25 Setting the JSP’s titleAdding an h1 header element Adding authors paragraph Adding an image

 2004 Prentice Hall, Inc. All rights reserved. Outline 29 bookInformation.jsp (2 of 2) Price: ISBN: Edition: Copyright Year: Description: Book List Adding price paragraph Adding ISBN paragraph Adding edition paragraph Adding copyright year paragraph Adding description paragraph Adding a hyperlink to books.jsp