1. Trang chủ
  2. » Công Nghệ Thông Tin

Java C7. Outline of Web application and Eclipse. potx

45 347 0
Tài liệu đã được kiểm tra trùng lặp

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Tiêu đề Outline of Web Application and Eclipse
Tác giả Nguyen Hong Quang
Trường học Hanoi University of Technology
Chuyên ngành Java Programming
Thể loại Bài giảng
Năm xuất bản 2025
Thành phố Hanoi
Định dạng
Số trang 45
Dung lượng 1,61 MB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

Outline of WWWClient Web browser Display reading page URL address Internet Web server HTML file, program file, multimedia file : image file, sound file, movie file, etc.. Collaboration b

Trang 1

Chapter 7 Outline of Web application and Eclipse

ITSS Java Programming

NGUYEN Hong Quang, HUT

Trang 2

Outline of WWW

Client

Web browser

Display reading page

URL address

Internet

Web server HTML file, program file, multimedia file : image file, sound file, movie file, etc Request

Response Link in a

Web page

Trang 4

“form” data exemple

Trang 5

HTTP method : GET and POST

 GET

 Add transmission information to URL

 There is a limitation in the length of the

transmission character string

 Example: http://localhost:8080/examples/hello?NAME=Billy

 POST

 There is not a limitation in the length of the

transmission character string

 It is possible to transmit only by <form> tag

Trang 6

Web application

Client

Web browser

Display reading page

URL address

Internet

Application server Request

Response

Link in a Web page

Run application

Trang 7

Features of Web application

 an execution environment to execute the server

applications (CGI) : Servlet and JSP, ASP, PHP, etc

 example is ‘Tomcat’, etc.

Trang 8

Directory structure of Web application

Trang 9

Collaboration between Servlet, JSP and JDBC

DBMS JDBC

 Servlet : Java program that runs on Server side

(Web container)

 JSP : Embedding the Java program into the HTML files

Trang 10

Using directly JDK

 Edit program : Editor (NotePad)

 Execution program : Dos Prompt :

Trang 11

The role and composition of IDE

 editor and compiler are integrated

 All processes from editing to execution can be done with one set of software

 Eclipse

 Visual Studio (Microsoft)

 Sun ONE Studio (Sun)

Trang 12

Characteristics of Eclipse

application

http://www eclipse org

Trang 13

Install plug-ins Eclipse

Trang 14

Main screen of Eclipse

Trang 15

Code assistance : Supplementation

with method name

Eclipse

Trang 16

Code assistance : Supplementation

with class name

CTRL + Space

Eclipse

Trang 17

Java programming with Eclipse

Start of Eclipse Making of project Making of class Build and Execution

End of Eclipse

Eclipse

Trang 18

Start of Eclipse : step 1 Eclipse

Trang 19

Start of Eclipse : step 2 Eclipse

Trang 20

Start of Eclipse : step 3

Workbench

Eclipse

Trang 21

Making project 1 Eclipse

Trang 22

Making project 2 Eclipse

Trang 23

Making project 3 Eclipse

Trang 24

Making class 1 Eclipse

Trang 25

Making class 2 Eclipse

Trang 26

Making class 3 Eclipse

Trang 27

Run application in Eclipse Eclipse

Trang 28

Default directory of Eclipse projectEclipse

Trang 29

Change directory 1 Eclipse

Trang 30

Change directory 1 Eclipse

Trang 31

Execution of class that uses

command line argument 1

Eclipse

Trang 32

Execution of class that uses

command line argument 2

Eclipse

Trang 33

Execution of class that uses

command line argument 3

Eclipse

Trang 34

Setting of class passing 1 (JDBC driver)

Eclipse

Trang 35

Setting of class passing 2 (JDBC driver)

Eclipse

Trang 36

Setting of class passing 3 (JDBC driver)

Eclipse

Trang 37

Close project Eclipse

Trang 38

Open project (1)

Trang 42

End of Eclipse

Trang 44

Hands-on exercises 2

server

 InputName.htm

build and execution) :

 HelloWorld

 HelloWorld with input parameter

Ngày đăng: 28/06/2014, 03:20

TỪ KHÓA LIÊN QUAN

TÀI LIỆU CÙNG NGƯỜI DÙNG

TÀI LIỆU LIÊN QUAN