Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
You are on page 1of 21

Qidong Liu

Email : ieqdliu@zzu.edu.cn
JSP tutorial series
1
3 Tutorial Intro

2
3 JSP Overview

3 Setting Up Development Environment

4
3 Installing Tomcat

3
5 Installing Eclipse

3
6 Connecting Eclipse to Tomcat 2
JSP tutorial series
7
3 JSP Hello World

8
3 JSP Expressions

9
3 JSP Scriptlets

10
3 JSP Declarations

11
3 JSP Built-In Objects

12
3 Including Files
3
13
3 Importing Java Classes
Assessment
2 credits (1-8 weeks)

The final grades are made up of two parts:


•30% Continuous assessment
(Attendance, Homework)
•70% examination
(closed/open book)
4
Type the code with me

•Course moves at an easy pace


•This provides time for you to type the code along with
me
•Remember, hands-on training is the best way to learn!

5
Questions/ help

•If you have questions or need help

•Post the question in the comments section or email to


me (ieqdliu@zzu.edu.cn)

6
Topics

1
3 What are web applications

2
3 What are JSP and Servlets

3 What types of apps can you create

7
1
3 What are web applications

• A web site where the HTML pages are generated


dynamically
• Based on the user’s actions
1 、 Search 2 、 SQL

Web Web
browser 4 、 HTML page 3 、 Results database
server

8
• Static Web Pages : Pages will remain the same until
someone changes it manually 。
– Such as http://www.zzu.edu.cn/gaikuang.htm
– HTML,CSS, Etc.

9
What are JSPs and Servlets?

•Java code that runs on the web server


•Read user’s actions… normally from HTML form
•Performs the work
•Returns an HTML pages that is generated dynamically

10
The difference between JSP, ASP and
PHP

ASP Proprietary, single platform and slow.

PHP Constant recompilation

Java , JSP has a lot of support within 11


JS the larger company
P
What types of web apps can you create?

•Any industry
•E-commerce
•Student / employee tracking
•Restaurant / hotel reservations
•Social media
•Any types of app

12
Key building blocks

•JSPs and Servlets are key components of the java


enterprise edition (java EE)
•Popular MVC frameworks are actually built on top of
JSP and Servlets
 Spring
 JSF
 Struts

13
• Summary

• what are web applications


• What are JSPs and Servlets?
• What types of web apps can you create?

14
Topics

1
3 Required Software

2
3 High-level Steps

15
Install JDK

•Downloading the JDK installer from


https://www.oracle.com/java/
•Running the JDK Installer
•Setting the Path environment variable

16
To build JSP Applications, you need the following

•Java Application Server -- Tomcat


•Java Integrated Development Environment (IDE) --
Eclipse

17
Install Tomcat

•Downloading the Tomcat from


http://tomcat.apache.org/
•Running the Tomcat installer
•Verify the installation by viewing
http://localhost:8080/

18
Install Eclipse

•Downloading the Eclipse from


https://www.eclipse.org/
•Unzip Eclipse

19
Connecting Eclipse and Tomcat

Benefits:

•Start Tomcat from Eclipse


•Easily deploy web applications directly to Tomcat

20
Thank you!

You might also like