Advanced Java Class - PowerPoint PPT Presentation

About This Presentation
Title:

Advanced Java Class

Description:

POST put form values in embedded header (invisible, any length) URLs, Identifiers, and Names ... HTML & XHTML Documents. XML is strict (grammatically) HTML ... – PowerPoint PPT presentation

Number of Views:41
Avg rating:3.0/5.0
Slides: 11
Provided by: Baya
Category:
Tags: advanced | class | java

less

Transcript and Presenter's Notes

Title: Advanced Java Class


1
(No Transcript)
2
Advanced Java Class
  • Web Applications Part 0
  • (Introduction)

3
Intro to Web Apps
  • web apps vs. web sites
  • server-side processing
  • web apps vs. network programming
  • takes advantage of abstractions that cover
    communications layer, security, etc.
  • requires web server application server web
    client software
  • Webs app API is part of J2EE

4
Web technology
See figure 13-1 on page 815 for a cleaner
version.
5
HTTP and HTTPS protocols
  • "S" is for secure
  • An exchange request response
  • Each exchange is independent ("stateless")
  • HTTP request methods
  • GET put form values in URL (visible, limited
    length)
  • POST put form values in embedded header
    (invisible, any length)

6
URLs, Identifiers, and Names
  • protocol//domainNameport/resourceName
  • resourceName folder path file
  • protocols HTTP, HTTPS, FTP, etc.
  • domain Name host Name, IP address, etc.
  • port default for HTTP80, HTTPS443

7
HTML XHTML Documents
  • XML is strict (grammatically)
  • HTML has all the popular mark-ups
  • XHTML is both (therefore preferred)

8
Servlets
  • Inside a web-app, on the server-side
  • Generally "alive" while web app is alive
  • Respond to HTTP requests

9
ViewControllerModel Layers
  • View Web pages shown on client side
  • Controller Servlet (server-side class)
  • Model Other server side classes
  • access DB, server-side files
  • security-sensitive tasks
  • processor-heavy operations
  • network communications

10
Digital Flashcards Example Activity
  • Divide each task into subtasks.
  • Which subtasks should be done at each level of
    the application (VMC), and what file type or Java
    object should be responsible for the subtask?
  • Tasks
  • Logging in a user
  • Allowing a user to enter a new word
  • Quizzing a user on a list of words and recording
    the results.
Write a Comment
User Comments (0)
About PowerShow.com