Jbuilder Servelts and web servers - PowerPoint PPT Presentation

About This Presentation
Title:

Jbuilder Servelts and web servers

Description:

INE4481 DISTRIBUTED DATABASES & CLIENT-SERVER ARCHITECTURES Jbuilder Servelts and web servers Rufin Soh Wilfried Probst Rufin Soh INE4481 DISTRIBUTED DATABASES ... – PowerPoint PPT presentation

Number of Views:57
Avg rating:3.0/5.0
Slides: 18
Provided by: Soh58
Learn more at: https://www.oocities.org
Category:

less

Transcript and Presenter's Notes

Title: Jbuilder Servelts and web servers


1
INE4481 DISTRIBUTED DATABASES CLIENT-SERVER
ARCHITECTURES
  • Jbuilder Servelts and web servers
  • Rufin Soh

Wilfried Probst Rufin Soh INE4481
DISTRIBUTED DATABASES CLIENT-SERVER
ARCHITECTURES
2
Content
  •   Jbuilder Servelts and web servers
  • Install and configure jdk 1
  • Your first servlet
  • Install and configure tomcat web server
  • Run tomcat web server
  • Execute your servlet

Wilfried Probst Rufin Soh INE4481
DISTRIBUTED DATABASES CLIENT-SERVER
ARCHITECTURES
3
Install and configure jdk 1
  • Make sure that the jdk you are using in Jbuilkder
    contains the servlets librairies jsdk
  • If not download it from sun web site
  • Add this librairie to your libraries in Jbuilder
    environment 1,2,3,

1. Select project properties
2. Add servlet to libraries
Wilfried Probst Rufin Soh INE4481
DISTRIBUTED DATABASES CLIENT-SERVER
ARCHITECTURES
4
Install and configure jdk 1
  • Add this librairie to your libraries in Jbuilder
    environment 1,2,3,

3. Select servlet libraries and click  OK
4. Add servlet to libraries
Wilfried Probst Rufin Soh INE4481
DISTRIBUTED DATABASES CLIENT-SERVER
ARCHITECTURES
5
Your first servlet
1. Create a new class
Wilfried Probst Rufin Soh INE4481
DISTRIBUTED DATABASES CLIENT-SERVER
ARCHITECTURES
6
Your first servlet
  • Supports heterogeneous systems.

2. Specify your class servlet type
Wilfried Probst Rufin Soh INE4481
DISTRIBUTED DATABASES CLIENT-SERVER
ARCHITECTURES
7
Your first servlet
4. servlet name
3. Package name
5. Specify your servlet methods
Wilfried Probst Rufin Soh INE4481
DISTRIBUTED DATABASES CLIENT-SERVER
ARCHITECTURES
8
Your first servlet
Wilfried Probst Rufin Soh INE4481
DISTRIBUTED DATABASES CLIENT-SERVER
ARCHITECTURES
9
Install and configure tomcat web server
Download and unzip tomcat on your C\ drive
Wilfried Probst Rufin Soh INE4481
DISTRIBUTED DATABASES CLIENT-SERVER
ARCHITECTURES
10
Install and configure tomcat web server
Create a new folder with your project name in
webApps
Wilfried Probst Rufin Soh INE4481
DISTRIBUTED DATABASES CLIENT-SERVER
ARCHITECTURES
11
Install and configure tomcat web server
Wilfried Probst Rufin Soh INE4481
DISTRIBUTED DATABASES CLIENT-SERVER
ARCHITECTURES
12
Install and configure tomcat web server
Wilfried Probst Rufin Soh INE4481
DISTRIBUTED DATABASES CLIENT-SERVER
ARCHITECTURES
13
Install and configure tomcat web server
4. Copy your servlet.class (respecting the path)
and paste it in the classes folder
5. Open the web.xml file and configure parameter
3. Cut the WebInf folder in tomcat\ WebApps and
paste it in your folder
Wilfried Probst Rufin Soh INE4481
DISTRIBUTED DATABASES CLIENT-SERVER
ARCHITECTURES
14
Install and configure tomcat web server
Wilfried Probst Rufin Soh INE4481
DISTRIBUTED DATABASES CLIENT-SERVER
ARCHITECTURES
15
Install and configure tomcat web server
lt?xml version"1.0" encoding"ISO-8859-1"?gt lt!DOC
TYPE web-app PUBLIC "-//Sun Microsystems,
Inc.//DTD Web Application 2.2//EN"
"http//java.sun.com/j2ee/dtds/web-app_2_2.dtd"gt
ltweb-appgt
ltservletgt ltservlet-namegt MyApplication
lt/servlet-namegt ltservlet-classgt
ca.tav.project1.INE4481Servlet
lt/servlet-classgt lt/servletgt
6. The complete name of your servlet
5. The name of your html file e.g
INE4481project1.html
7. Save the web.xml file
Wilfried Probst Rufin Soh INE4481
DISTRIBUTED DATABASES CLIENT-SERVER
ARCHITECTURES
16
Run tomcat web server
9. Double click on startup.bat file to run the
server.
8. Go to the tomcat\bin directory
Wilfried Probst Rufin Soh INE4481
DISTRIBUTED DATABASES CLIENT-SERVER
ARCHITECTURES
17
Execute your servlet
9. Enter your address in the form
http//142.132.70.56/ INE4481project1.html 10
Fill your form and submit
Your machine IP
Wilfried Probst Rufin Soh INE4481
DISTRIBUTED DATABASES CLIENT-SERVER
ARCHITECTURES
Write a Comment
User Comments (0)
About PowerShow.com