Chapter 1 An introduction to web programming with Java

Similar documents
In this chapter, we lay the foundation for all our further discussions. We start

Web Applications. Originals of Slides and Source Code for Examples:

Server Setup and Configuration

An introduction to web programming with Java

CrownPeak Java Web Hosting. Version 0.20

This presentation will provide a brief introduction to Rational Application Developer V7.5.

An Overview of Servlet & JSP Technology

Oracle WebLogic Foundation of Oracle Fusion Middleware. Lawrence Manickam Toyork Systems Inc

Glassfish, JAVA EE, Servlets, JSP, EJB

Volume 1: Core Technologies Marty Hall Larry Brown. An Overview of Servlet & JSP Technology

Web Application Architecture (based J2EE 1.4 Tutorial)

BIRT Application and BIRT Report Deployment Functional Specification

CSI 2132 Lab 8. Outline. Web Programming JSP 23/03/2012

Portals, Portlets & Liferay Platform

Java with Eclipse: Setup & Getting Started

Security Testing of Java web applications Using Static Bytecode Analysis of Deployed Applications

Java Web Programming with Eclipse

JMemoryGuard (V1.2 above) provides new function Trend Analysis. Through memory usage log, it forecasts when memory will be exhausted.

Migrating Applications From IBM WebSphere to Apache Tomcat

2012 LABVANTAGE Solutions, Inc. All Rights Reserved.

2011 Marty Hall An Overview of Servlet & JSP Technology Customized Java EE Training:

What servlets and JSP are all about

Enterprise Java Hosting in a Cloud Environment. Web Infrastructure Union Pacific Railroad 24 June 2010

Web Development on the SOEN 6011 Server

Design Approaches of Web Application with Efficient Performance in JAVA

Java Servlet 3.0. Rajiv Mordani Spec Lead

Web Applications. For live Java training, please see training courses at

Contents. Primavera P6 Tested Configurations Release Version: Date: December 2013 Revision:

OXAGILE RESUMES SUMMARY OF QUALIFICATIONS TECHNICAL SKILLS SENIOR JAVA SOFTWARE ENGINEER

Java Servlet and JSP Programming. Structure and Deployment China Jiliang University

NetBeans IDE Field Guide

& JSP Technology Originals of Slides and Source Code for Examples:

Rapid Application Development. and Application Generation Tools. Walter Knesel

Java and Web. WebWork

SSC - Web applications and development Introduction and Java Servlet (II)

OUR COURSES 19 November All prices are per person in Swedish Krona. Solid Beans AB Kungsgatan Göteborg Sweden

DeskNow. Ventia Pty. Ltd. Advanced setup. Version : 3.2 Date : 4 January 2007

Michael Bösch. EDV-Consulting. Dipl. Informatiker (FH)

CS Developing Web Applications with Java Technologies

Java EE 6 development with Eclipse, Netbeans, IntelliJ and GlassFish. Ludovic Champenois Oracle Corporation

XAP 10 Global HTTP Session Sharing

Programming on the Web(CSC309F) Tutorial: Servlets && Tomcat TA:Wael Aboelsaadat

Web Applications and Struts 2

A Comparative Study of Web Development Technologies Using Open Source and Proprietary Software

System requirements. Java SE Runtime Environment(JRE) 7 (32bit) Java SE Runtime Environment(JRE) 6 (64bit) Java SE Runtime Environment(JRE) 7 (64bit)

Professional Profile Studies Senior Engineer October September 1998 Computer Engineering University of Deusto - Bizkaia (Spain)

PowerTier Web Development Tools 4

Information Technology Services

Getting Started with Web Applications

Framework Adoption for Java Enterprise Application Development

Jenkins User Conference Herzelia, July #jenkinsconf. Testing a Large Support Matrix Using Jenkins. Amir Kibbar HP

GlassFish v3. Building an ex tensible modular Java EE application server. Jerome Dochez and Ludovic Champenois Sun Microsystems, Inc.

Java (J2SE & J2EE) and Web Development Training Catalog

Case Studies of Running the Platform. NetBeans UML Servlet JSP GlassFish EJB

Rich Web Applications in Server-side Java without Plug-ins or JavaScript

T320 E-business technologies: foundations and practice

Enterprise JavaBeans' Future: Getting Simpler, More Ubiquitous, but Not Dominant

Preface. Motivation for this Book

Converting Java EE Applications into OSGi Applications

White Paper Converting Lotus Notes Applications to the Cloud Using the CIMtrek converter Product

Installation Guide for contineo

SERVER SETUP AND CONFIGURATION

An introduction to creating JSF applications in Rational Application Developer Version 8.0

JBoss JEE5 with EJB3.0 on NonStop. JAVA SIG, San Jose

Put a Firewall in Your JVM Securing Java Applications!

ENGINEER - DEVELOPER ADVANCED JAVA. 28 years old - 7 years of experience

Performance Optimization of Teaching Web Application based SSH Framework

Developing Web Applications using JavaServer Pages and Servlets

JBoss SOAP Web Services User Guide. Version: M5

Instructor: Betty O Neil

ServletExec TM 5.0 User Guide

JHU/EP Server Originals of Slides and Source Code for Examples:

WebSphere Suite Overview

ServletExec TM 6.0 User Guide. for Microsoft Internet Information Server Sun ONE Web Server Sun Java System Web Server and Apache HTTP Server

How to Easily Integrate BIRT Reports into your Web Application

applications. JBoss Enterprise Application Platform

Servlet 3.0. Alexis Moussine-Pouchkine. mercredi 13 avril 2011

Comparing IBM WebSphere Application Server v8.5 - Liberty Profile with Apache Tomcat 7

Oracle Business Intelligence Publisher. 1 Oracle Business Intelligence Publisher Certification. Certification Information 10g Release 3 (

OpenCms 7 Development

Workshop for WebLogic introduces new tools in support of Java EE 5.0 standards. The support for Java EE5 includes the following technologies:

Enterprise Application Development In Java with AJAX and ORM

Java Platform, Enterprise Edition (Java EE) From Yes-M Systems LLC Length: Approx 3 weeks/30 hours Audience: Students with experience in Java SE

BONITA, The Open Source BPM Solution

Developing Web Services with Eclipse

Java Web Programming. Student Workbook

Web Application Programmer's Guide

GRAD Analytics Advanced price and promotional analysis interface. Reactive UI providing dimensional visibility to marketing analysis.

Middleware Platforms for Application Development: A Product Comparison

JBS-102: Jboss Application Server Administration. Course Length: 4 days

Java EE Introduction, Content. Component Architecture: Why and How Java EE: Enterprise Java

ITG Software Engineering

Reporting and JSF. Possibilities, solutions, challenges. Slide 1. Copyright 2009, Andy Bosch,

On-campus Tomcat Deployment Client

DTWMS Required Software Engineers. 1. Senior Java Programmer (3 Positions) Responsibilities:

Crystal Reports for Eclipse

1 How to install CQ5 with an Application Server

Learning GlassFish for Tomcat Users

Apache Roller, Acegi Security and Single Sign-on

Understanding class paths in Java EE projects with Rational Application Developer Version 8.0

Transcription:

Chapter 1 An introduction to web programming with Java Murach's Java Servlets/JSP (3rd Ed.), C1 2014, Mike Murach & Associates, Inc. Slide 1

Objectives Knowledge 1. Name the software component that runs on the client of a typical web application. 2. Name the two software components that run on the server of a typical web application. 3. Distinguish between HTML and HTTP. 4. Distinguish between static web pages and dynamic web pages. 5. Name three approaches for developing Java web applications. 6. Describe the software components that are required for developing servlet and JSP applications. 7. List and describe the three layers of a typical Java web application. 8. In general terms, describe the use of these directories as defined by the J2EE specification: webapps, document root, WEB-INF, and WEB-INF\classes. Murach's Java Servlets/JSP (3rd Ed.), C1 2014, Mike Murach & Associates, Inc. Slide 2

Objectives (continued) 9. Name two IDEs that can be used for developing Java web applications. 10. Name two web servers that can be used for developing Java web applications. 11. Name a popular database server that can be used for developing Java web applications. Murach's Java Servlets/JSP (3rd Ed.), C1 2014, Mike Murach & Associates, Inc. Slide 3

The first page of a shopping cart application Murach's Java Servlets/JSP (3rd Ed.), C1 2014, Mike Murach & Associates, Inc. Slide 4

The second page of a shopping cart application Murach's Java Servlets/JSP (3rd Ed.), C1 2014, Mike Murach & Associates, Inc. Slide 5

Components of a web application Client computer Server computer Internet connection Web browser Web server Database server Murach's Java Servlets/JSP (3rd Ed.), C1 2014, Mike Murach & Associates, Inc. Slide 6

How a web server processes static web pages How a web server processes dynamic web pages Murach's Java Servlets/JSP (3rd Ed.), C1 2014, Mike Murach & Associates, Inc. Slide 7

Three approaches for developing Java web apps Servlet/JSP Is a lower-level API that does less work for the programmer. Provides a high degree of control over the HTML/CSS/JavaScript that s returned to the browser. JSF Is a higher-level API that does more work for the programmer. Makes it more difficult to control the HTML/CSS/JavaScript that s returned to the browser. Spring Framework Is a higher-level API that does more work for the programmer. Provides a high degree of control over the HTML/CSS/JavaScript that s returned to the browser. Murach's Java Servlets/JSP (3rd Ed.), C1 2014, Mike Murach & Associates, Inc. Slide 8

Terminology The Java Standard Edition (Java SE) includes the Java Development Kit (JDK) and the Java Runtime Environment (JRE). The Java Enterprise Edition (Java EE) specification describes how web servers can interact with all Java web technologies. Servlets store the Java code that does the server-side processing. JavaServer Pages (JSPs) store the HTML that defines the user interface. JavaServer Faces (JSF) provides a higher-level API that replaces both servlets and JSPs. Java Persistence API (JPA) is an API for working with databases. Murach's Java Servlets/JSP (3rd Ed.), C1 2014, Mike Murach & Associates, Inc. Slide 9

The components of a servlet/jsp application Murach's Java Servlets/JSP (3rd Ed.), C1 2014, Mike Murach & Associates, Inc. Slide 10

The architecture for a servlet/jsp application Murach's Java Servlets/JSP (3rd Ed.), C1 2014, Mike Murach & Associates, Inc. Slide 11

The directory structure for a web application Murach's Java Servlets/JSP (3rd Ed.), C1 2014, Mike Murach & Associates, Inc. Slide 12

The directories and files for a web application Directory (root) \WEB-INF Description Contains the HTML and JSP files. Contains the web.xml file and is not directly accessible from the web. \WEB-INF\classes Contains the servlets and other Java classes for your application. Each subdirectory corresponds with the package for the Java class. \WEB-INF\lib \META-INF Contains any JAR files that contain Java class libraries that are used by the web application. Contains the context.xml file that configures the web application context. Murach's Java Servlets/JSP (3rd Ed.), C1 2014, Mike Murach & Associates, Inc. Slide 13

The NetBeans IDE Murach's Java Servlets/JSP (3rd Ed.), C1 2014, Mike Murach & Associates, Inc. Slide 14

Popular IDEs for Java web development NetBeans Eclipse IntelliJ IDEA Murach's Java Servlets/JSP (3rd Ed.), C1 2014, Mike Murach & Associates, Inc. Slide 15

Two popular web servers Tomcat Is a servlet/jsp engine that includes a web server. Is free, open-source, and runs on all modern operating systems. Is a popular web server for Java web applications. GlassFish Is a complete Java EE application server. Is free, open-source, and runs on all modern operating systems. Provides more features than Tomcat. Requires more system resources than Tomcat. Murach's Java Servlets/JSP (3rd Ed.), C1 2014, Mike Murach & Associates, Inc. Slide 16

Other popular web servers WildFly (formerly JBoss) Jetty Oracle WebLogic IBM WebSphere Murach's Java Servlets/JSP (3rd Ed.), C1 2014, Mike Murach & Associates, Inc. Slide 17

A popular database server MySQL Is a relational database server that implements most of the SQL standard. Is free, open-source, and runs on all modern operating systems. Is the most popular database server for Java web applications. Other popular database servers PostgreSQL Oracle Murach's Java Servlets/JSP (3rd Ed.), C1 2014, Mike Murach & Associates, Inc. Slide 18

An ISP that provides servlet/jsp web hosting Murach's Java Servlets/JSP (3rd Ed.), C1 2014, Mike Murach & Associates, Inc. Slide 19

The FileZilla program Murach's Java Servlets/JSP (3rd Ed.), C1 2014, Mike Murach & Associates, Inc. Slide 20