CS 160: Software Engineering August 27 Class Meeting Department of Computer Science San Jose State University Fall 2014 Instructor: Ron Mak www.cs.sjsu.edu/~mak.

Slides:



Advertisements
Similar presentations
Lecture 11 Server Side Interaction
Advertisements

Murach’s Java Servlets/JSP (2 nd Ed.), C2© 2008, Mike Murach & Associates, Inc.Slide 1.
CS 174: Web Programming January 27 Class Meeting
Murach’s Java Servlets/JSP (2 nd Ed.), C4© 2008, Mike Murach & Associates, Inc.Slide 1.
Object-Oriented Enterprise Application Development Tomcat 3.2 Configuration Last Updated: 03/30/2001.
1 * The World Wide Web * HTML Basics Internet 1: The World Wide Web.
CS 153: Concepts of Compiler Design August 25 Class Meeting Department of Computer Science San Jose State University Fall 2014 Instructor: Ron Mak
CS 160: Software Engineering August 25 Class Meeting Department of Computer Science San Jose State University Fall 2014 Instructor: Ron Mak
INSTRUCTIONAL SUPPORT SERVICES (ISS) SHORT COURSE, FALL 2012 UMSL Introduction to Web Page Design.
Julien Thibault / Phil Brewster / Kristina Doing-Harris
ECE356 – Database Systems Lab 1 – Building a Web Project with NetBeans Tiuley Alguindigue Lab Instructor – University of Waterloo, E & CE Dept. Fall 2013.
1 Java Server Programming zLecture 1 focuses on: yIntroduction to web services y Web Services using Axis y The bigger Picture: Introduction to J2EE y Java.
1 CS428 Web Engineering Lecture 18 Introduction (PHP - I)
Chapter 1 Web Server Setup and Configuration. Contents A.What is web server B.Installing and Configuring Web Server C.Testing the Installation.
Tomcat Celsina Bignoli History of Tomcat Tomcat is the result of the integration of two groups of developers. – JServ, an open source.
Creating a Hello App Using Google App Engine. What are Google apps? Apps is an abbreviation for application. An app is a piece of software. It can run.
Linux Operations and Administration
JSP and Servlets Lecture notes by Theodoros Anagnostopoulos.
DAT602 Database Application Development Lecture 15 Java Server Pages Part 1.
M. Taimoor Khan * Java Server Pages (JSP) is a server-side programming technology that enables the creation of dynamic,
_______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications1.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Outline 29.1 Multi-Tier Architecture 29.2 Web Servers.
Chapter 16 The World Wide Web Chapter Goals Compare and contrast the Internet and the World Wide Web Describe general Web processing Describe several.
CS 160: Software Engineering October 8 Class Meeting
IT 211 Project Integration and Deployment Lab #11.
CS441 CURRENT TOPICS IN PROGRAMMING LANGUAGES LECTURE 5_1 George Koutsogiannakis/ Summer
AN OVERVIEW OF SERVLET TECHNOLOGY SERVER SETUP AND CONFIGURATION WEB APPLICATION STRUCTURE BASIC SERVLET EXAMPLE Java Servlets - Compiled By Nitin Pai.
Chapter 17 - Deploying Java Applications on the Web1 Chapter 17 Deploying Java Applications on the Web.
10 Adding Interactivity to a Web Site Section 10.1 Define scripting Summarize interactivity design guidelines Identify scripting languages Compare common.
|Tecnologie Web L-A Anno Accademico Laboratorio di Tecnologie Web Introduzione ad Eclipse e Tomcat
CS 235: User Interface Design October 15 Class Meeting Department of Computer Science San Jose State University Fall 2014 Instructor: Ron Mak
Java Servlets example using NetBeans 6. Pre-requirements: Install Java JDK 1.6 Install NetBeans IDE 6 (we will use version NetBeans IDE update 16)
National Center for Supercomputing Applications NCSA OPIE Presentation November 2000.
JAVA SERVER PAGES CREATING DYNAMIC WEB PAGES USING JAVA James Faeldon CS 119 Enterprise Systems Programming.
Chapter 3 Servlet Basics. 1.Recall the Servlet Role 2.Basic Servlet Structure 3.A simple servlet that generates plain text 4.A servlet that generates.
1 3. Computing System Fundamentals 3.1 Language Translators.
CS 235: User Interface Design September 22 Class Meeting Department of Computer Science San Jose State University Fall 2014 Instructor: Ron Mak
CS 174: Web Programming August 31 Class Meeting Department of Computer Science San Jose State University Fall 2015 Instructor: Ron Mak
Chapter 2 An Overview of Servlet and JSP Technology.
Topic Java EE installation (Eclipse, glassfish, etc.) Eclipse configuration for EE Creating a Java Web Dynamic Project Creating your first servlet.
CS 160: Software Engineering September 3 Class Meeting Department of Computer Science San Jose State University Fall 2014 Instructor: Ron Mak
Liferay Installation Prepared by: Do Xuan Hai 8 August 2011.
CS 174: Web Programming September 28 Class Meeting Department of Computer Science San Jose State University Fall 2015 Instructor: Ron Mak
CS 160: Software Engineering December 10 Class Meeting Department of Computer Science San Jose State University Fall 2014 Instructor: Ron Mak
Module: Software Engineering of Web Applications Chapter 2: Technologies 1.
CS562 Advanced Java and Internet Application Introduction to the Computer Warehouse Web Application. Java Server Pages (JSP) Technology. By Team Alpha.
Core basic Java web server technologies. Tools Eclipse IDE for Java EE Developers (Netbeans also works) nloads/packages/eclipse-
Unit 1 – Web Concepts Instructor: Brent Presley.
CSI 3125, Preliminaries, page 1 JSP (Java Server Pages)
Web Programming Introduction to Web Technology HTML & Dynamic web content.
CS 160 and CMPE/SE 131 Software Engineering January 28 Class Meeting
Chapter 3 Servlet Basics. Contents A.Installing Eclipse WTP and configuring Tomcat B.Prime Number Problem C.Multiplication Table Problem.
CS 157B: Database Management Systems II April 22 Class Meeting Department of Computer Science San Jose State University Spring 2013 Instructor: Ron Mak.
CS 160 and CMPE/SE 131 Software Engineering February 16 Class Meeting Department of Computer Science Department of Computer Engineering San José State.
Chapter 1 Murach's JavaScript and jQuery, C1© 2012, Mike Murach & Associates, Inc.Slide 1.
WMarket For Adminstrators Manual Installation. Basic Dependencies To install your own WMarket instance, you are required to install the following software:
Google App Engine using Java 1. Outline Getting started Guestbook example Todo example Simplified Madlib 2.
Web Page Design The Basics. The Web Page A document (file) created using the HTML scripting language. A document (file) created using the HTML scripting.
Class03 Introduction to Web Development (Hierarchy and the IDE)
Web Concepts Lesson 2 ITBS2203 E-Commerce for IT.
Links and Comments in HTML5
Tomcat Celsina Bignoli
Internet Programming.
© 2008, Mike Murach & Associates, Inc.
© 2008, Mike Murach & Associates, Inc.
© 2008, Mike Murach & Associates, Inc.
© 2008, Mike Murach & Associates, Inc.
© 2017, Mike Murach & Associates, Inc.
CGS 3066: Web Programming and Design Fall 2019
Presentation transcript:

CS 160: Software Engineering August 27 Class Meeting Department of Computer Science San Jose State University Fall 2014 Instructor: Ron Mak

Computer Science Dept. Fall 2014: August 27 CS 160: Software Engineering © R. Mak Reminders: By Friday, August 29  Form teams.  me your team information. team name team members and addresses  1-paragraph description of your team’s web application _ 2

Computer Science Dept. Fall 2014: August 27 CS 160: Software Engineering © R. Mak 3 “The Five C’s”  Complexity  Change  Collaboration  Communication  Coordination

Computer Science Dept. Fall 2014: August 27 CS 160: Software Engineering © R. Mak 4 Software Engineering is …  Team-based  Processes  Manage complexity  Manage change. … team-based processes that manage complexity and change in order to successfully develop software products. Successful software products! }

Computer Science Dept. Fall 2014: August 27 CS 160: Software Engineering © R. Mak 5 Architecture of a Java Web Application Tomcat Microsoft Explorer Firefox Google Chrome Apple Safari MySQL Relational Database Manager Your work here! JSP, servlets, database tables, etc. Murach’s Java Servlets/JSP, 2 nd ed. © 2008, Mike Murach & Associates, Inc.

Computer Science Dept. Fall 2014: August 27 CS 160: Software Engineering © R. Mak 6 Take roll!

Computer Science Dept. Fall 2014: August 27 CS 160: Software Engineering © R. Mak 7 Basic HTML Murach’s Java Servlets/JSP, 2 nd ed. © 2008, Mike Murach & Associates, Inc.

Computer Science Dept. Fall 2014: August 27 CS 160: Software Engineering © R. Mak 8 Basic HTML Tags Murach’s Java Servlets/JSP, 2 nd ed. © 2008, Mike Murach & Associates, Inc.

Computer Science Dept. Fall 2014: August 27 CS 160: Software Engineering © R. Mak 9 Basic HTML Tags (cont’d) Murach’s Java Servlets/JSP, 2 nd ed. © 2008, Mike Murach & Associates, Inc.

Computer Science Dept. Fall 2014: August 27 CS 160: Software Engineering © R. Mak 10 Anchor Tags (Links) Murach’s Java Servlets/JSP, 2 nd ed. © 2008, Mike Murach & Associates, Inc.

Computer Science Dept. Fall 2014: August 27 CS 160: Software Engineering © R. Mak 11 Tables Murach’s Java Servlets/JSP, 2 nd ed. © 2008, Mike Murach & Associates, Inc.

Computer Science Dept. Fall 2014: August 27 CS 160: Software Engineering © R. Mak 12 Images Murach’s Java Servlets/JSP, 2 nd ed. © 2008, Mike Murach & Associates, Inc.

Computer Science Dept. Fall 2014: August 27 CS 160: Software Engineering © R. Mak 13 Cascading Style Sheets (CSS) Murach’s Java Servlets/JSP, 2 nd ed. © 2008, Mike Murach & Associates, Inc.

Computer Science Dept. Fall 2014: August 27 CS 160: Software Engineering © R. Mak 14 HTML Form Murach’s Java Servlets/JSP, 2 nd ed. © 2008, Mike Murach & Associates, Inc.

Computer Science Dept. Fall 2014: August 27 CS 160: Software Engineering © R. Mak 15 Text Controls Murach’s Java Servlets/JSP, 2 nd ed. © 2008, Mike Murach & Associates, Inc.

Computer Science Dept. Fall 2014: August 27 CS 160: Software Engineering © R. Mak 16 Text Areas Murach’s Java Servlets/JSP, 2 nd ed. © 2008, Mike Murach & Associates, Inc.

Computer Science Dept. Fall 2014: August 27 CS 160: Software Engineering © R. Mak Check Boxes and Radio Buttons One button group Murach’s Java Servlets/JSP, 2 nd ed. © 2008, Mike Murach & Associates, Inc.

Computer Science Dept. Fall 2014: August 27 CS 160: Software Engineering © R. Mak Combo Boxes  The user can select only one option. AKA: drop-down menu 18 Murach’s Java Servlets/JSP, 2 nd ed. © 2008, Mike Murach & Associates, Inc.

Computer Science Dept. Fall 2014: August 27 CS 160: Software Engineering © R. Mak 19 List Boxes  The user can select multiple options. Murach’s Java Servlets/JSP, 2 nd ed. © 2008, Mike Murach & Associates, Inc.

Computer Science Dept. Fall 2014: August 27 CS 160: Software Engineering © R. Mak What is a Servlet?  A servlet is a Java class that extends HttpServlet.  Servlets reside on the server computer in a directory that is controlled by Tomcat. Recall that Tomcat is our JSP/servlet engine.  A servlet object is invoked by a URL. URL = Uniform Resource Locator (i.e., a web address)  Servlet objects run on the server computer. _ 20

Computer Science Dept. Fall 2014: August 27 CS 160: Software Engineering © R. Mak What is a Servlet? cont’d  When invoked, a servlet object can: Dynamically generate HTML that will be returned to the client as part of an HTTP response. Perform any application logic. Access the back-end database. Whatever – it’s Java code! _ 21

Computer Science Dept. Fall 2014: August 27 CS 160: Software Engineering © R. Mak 22 What is a JavaServer Page (JSP)?  A JSP is a file that looks a lot like the HTML that the web server will return to the client as part of an HTTP response. JSPs reside on the server computer in a directory that is controlled by Tomcat.  Special tags in the file represent where dynamically-generated content will appear. A plain HTML page is static. A JSP represents an HTML page that is dynamically generated.

Computer Science Dept. Fall 2014: August 27 CS 160: Software Engineering © R. Mak 23 What is a JavaServer Page? cont’d  A JSP is invoked by a URL.  The first time it’s invoked, a JSP is compiled by the JSP/servlet engine (e.g., Tomcat) into a servlet.  A JSP is a much easier way to code a servlet whose main purpose is to return HTML to the client. JSPs are often coded by web page designers who know HTML but not Java. _

Computer Science Dept. Fall 2014: August 27 CS 160: Software Engineering © R. Mak 24 The Tomcat Server  Chapter 2 of the book Java Servlets and JSP does an excellent job of explaining how to download, install, and use Tomcat. Recommendation: Follow the book’s instructions precisely regarding user names and passwords, otherwise some of the examples may not work.  First learn how to use Tomcat by itself. Local URL for the default page:

Computer Science Dept. Fall 2014: August 27 CS 160: Software Engineering © R. Mak 25 The Tomcat Server, cont’d  In Chapter 3, you’ll learn how to run Tomcat from within the NetBeans IDE while you’re developing and debugging JSPs and servlets. _

Computer Science Dept. Fall 2014: August 27 CS 160: Software Engineering © R. Mak 26 Tomcat’s Directory Structure  On the server computer: During development, your laptop can be both the client computer and the server computer. Murach’s Java Servlets/JSP, 2 nd ed. © 2008, Mike Murach & Associates, Inc.

Computer Science Dept. Fall 2014: August 27 CS 160: Software Engineering © R. Mak 27 Tomcat’s Directory Structure, cont’d Murach’s Java Servlets/JSP, 2 nd ed. © 2008, Mike Murach & Associates, Inc.

Computer Science Dept. Fall 2014: August 27 CS 160: Software Engineering © R. Mak 28 Manually Deploy a Web Application  A web application is packaged as a.war file Web archive file, similar to a.jar file The NetBeans IDE will create.war files for you.  To deploy a web application manually, copy its.war file into Tomcat’s webapps directory. Tomcat will automatically expand the.war file into a subdirectory structure and enable users to access the application’s web pages. Demo

Computer Science Dept. Fall 2014: August 27 CS 160: Software Engineering © R. Mak 29 Tomcat’s Web Application Manager  Manage your web applications start stop reload deploy undeploy  Manager URL: Demo

Computer Science Dept. Fall 2014: August 27 CS 160: Software Engineering © R. Mak 30 NetBeans  Chapter 3 of the book Java Servlets and JSP does an excellent job of explaining how to download, install, and use NetBeans. Download from: You want the Java EE version.  Edit, debug, and run web applications. Similar to Eclipse Integrated with Tomcat

Computer Science Dept. Fall 2014: August 27 CS 160: Software Engineering © R. Mak 31 NetBeans  When you install NetBeans, be sure to specify that you want to include Apache Tomcat. Otherwise, you’ll get the GlassFish server instead.