Servlet / JSP - PowerPoint PPT Presentation

1 / 44
About This Presentation
Title:

Servlet / JSP

Description:

Servlet / JSP 0. Web Application Technologies Servlet Server Simple Servlet Servlet / HTML Form Deployment Descriptor Servlet Context MVC Parrern ... – PowerPoint PPT presentation

Number of Views:98
Avg rating:3.0/5.0
Slides: 45
Provided by: jeo74
Category:
Tags: jsp | java | jdbc | servlet

less

Transcript and Presenter's Notes

Title: Servlet / JSP


1
Servlet / JSP
? ? ?
2
0. ??
  • Web Application Technologies
  • Servlet Server
  • Simple Servlet
  • Servlet / HTML Form
  • Deployment Descriptor
  • Servlet Context
  • MVC Parrern
  • Cookie / Session
  • Error Handling

3
Web Application Technologies
4
Client-Server Architecture
5
HTTP C-S Architecture
6
CGI Programs on the Web Server
7
?? CGI Programs
8
Servlets on the Web Server
9
Servlet Program
10
The Model2 Architecture
11
J2EE Architecture
12
Web Application Migration
13
Servlet Engine
14
Servlet Server Programs
  • JDK ??
  • JAVA_HOMEC\J2SDK1.X
  • Path.JAVA_HOME\bin
  • classpath.C\....\X.jar
  • Servlet Server
  • TOMCAT(http//jakarta.apache.org)
  • RESIN(http//www.caucho.com)
  • Home ?? ??
  • servlet.jar?? classpath? ??

15
TOMCAT
  • ./Tomcat/bin\startup.bat

16
TOMCAT Configuration
  • Tomcat
  • bin
  • startup.bat, shutdown.bat
  • conf
  • server.xml, web.xml
  • webapps
  • ROOT
  • WEB-INF
  • Classes
  • web.xml
  • html, jsp
  • work

17
Resin
  • ./resin\bin/httpd.exe

18
Resin
19
Resin Configuration
  • bin
  • httpd.exe
  • conf
  • resin.conf, app-default.xml
  • doc
  • WEB-INF
  • classes
  • work
  • html, jsp
  • lib
  • resin.jar
  • webapps
  • config.xml

20
Simple Servlet
21
The NetServer Architecture
22
The Generic Servlet API
23
Generic Servlet Code
  • import javax.servlet.GenericServlet
  • import javax.servlet.ServletRequest
  • import javax.servlet.ServletResponse
  • import java.io.PrintWriter
  • import java.io.IOException
  • public class HelloServlet extends GenericServlet
  • public void service(ServletRequest request,
    ServletResponse response) throws IOException
  • PrintWriter out response.getWriter()
  • out.println(
Write a Comment
User Comments (0)
About PowerShow.com