Download presentation
Presentation is loading. Please wait.
Published bySilas Ball Modified over 9 years ago
1
© Copyright 1992-2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Outline 29.1 Multi-Tier Architecture 29.2 Web Servers 29.3 Apache Tomcat Web Server 29.4 Test-Driving the Bookstore Application 29.5 Wrap-Up Tutorial 29 – Bookstore Application: Web Applications Introducing Apache Tomcat Web Server
2
© Copyright 1992-2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 2 Objectives In this tutorial, you will learn to: –Use the Apache Tomcat Web server to serve Web content to Web browser clients. –Request documents from a Web server. –Execute a Web application that uses Java Server Pages technology.
3
© Copyright 1992-2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 3 29.1 Multi-Tier Architecture Web applications –Java Server Pages JSP –HTML (HyperText Markup Language) Multi-Tier applications –n-tier applications –Tier Information tier –Data tier, bottom tier Middle tier –Business logic tier Client tier –Top tier
4
© Copyright 1992-2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 4 29.1 Multi-Tier Architecture (Cont.) Figure 29.1 Three-tier application model.
5
© Copyright 1992-2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 5 29.2 Web Servers Web Server URL (Uniform Resource Locator) –Host –Domain Domain name (Web address) –Fully qualified domain name (FQDN) Top-level domain (TLD) –IP (Internet Protocol) address –Domain Name System (DNS) server –DNS Lookup
6
© Copyright 1992-2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 6 29.3 Apache Tomcat Web Server Figure 29.2 Locating the Java Development Kit. Copyright © 2000-2003 The Apache Software Foundation (http://www.apache.org/). All rights reserved.http://www.apache.org/
7
© Copyright 1992-2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 7 29.3 Apache Tomcat Web Server (Cont.) Figure 29.3 Accepting the Tomcat license agreement. Copyright © 2000-2003 The Apache Software Foundation (http://www.apache.org/). All rights reserved.http://www.apache.org/
8
© Copyright 1992-2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 8 29.3 Apache Tomcat Web Server (Cont.) Figure 29.4 Accepting Tomcat default installation options. Copyright © 2000-2003 The Apache Software Foundation (http://www.apache.org/). All rights reserved.http://www.apache.org/
9
© Copyright 1992-2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 9 29.3 Apache Tomcat Web Server (Cont.) Figure 29.5 Choosing the default Tomcat installation directory. Copyright © 2000-2003 The Apache Software Foundation (http://www.apache.org/). All rights reserved.http://www.apache.org/ Tomcat installation default directory
10
© Copyright 1992-2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 10 29.3 Apache Tomcat Web Server (Cont.) Figure 29.6 Tomcat installation process dialog. Copyright © 2000-2003 The Apache Software Foundation (http://www.apache.org/). All rights reserved.http://www.apache.org/
11
© Copyright 1992-2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 11 29.3 Apache Tomcat Web Server (Cont.) Figure 29.7 Selecting a Tomcat administrator password. Copyright © 2000-2003 The Apache Software Foundation (http://www.apache.org/). All rights reserved.http://www.apache.org/
12
© Copyright 1992-2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 12 29.3 Apache Tomcat Web Server (Cont.) Figure 29.8 Completing the Tomcat installation. Copyright © 2000-2003 The Apache Software Foundation (http://www.apache.org/). All rights reserved.http://www.apache.org/
13
© Copyright 1992-2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 13 29.3 Apache Tomcat Web Server (Cont.) Copy the C:\Examples\Tutorial29\ CompletedApplication\bookstore directory to Tomcat’s webapps directory Figure 29.9 Copying the bookstore folder to webapps.
14
© Copyright 1992-2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 14 29.3 Apache Tomcat Web Server (Cont.) Figure 29.10 Copying the database JAR files to the Bookstore Web application.
15
© Copyright 1992-2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 15 29.4 Test-Driving the Bookstore Application
16
© Copyright 1992-2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 16 29.4 Test-Driving the Bookstore Application (Cont.) Figure 29.11 Tomcat server output window.
17
© Copyright 1992-2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 17 29.4 Test-Driving the Bookstore Application (Cont.) Figure 29.12 HTML page that displays a form, with a list and a button. HTML page titleLocation of books.jsp pageHTML h1 header elementHTML paragraph elementHTML menu control used to display a list HTML input element with type submit used to display a button
18
© Copyright 1992-2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 18 29.4 Test-Driving the Bookstore Application (Cont.) Figure 29.13 Page that displays the selected books information. Address of bookInformation.jsp page When clicked, this link returns users to books.jsp
19
© Copyright 1992-2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 19 29.4 Test-Driving the Bookstore Application Figure 29.14 Deleting the bookstore folder from Tomcats webapps folder. Right click bookstore Select delete
Similar presentations
© 2024 SlidePlayer.com Inc.
All rights reserved.