15-01-2013, 09:47 AM
Servlets
Servlets.pptx (Size: 670.99 KB / Downloads: 25)
Introduction
Java networking capabilities
Socket-based and packet-based communications
Package java.net
Remote Method Invocation (RMI)
Package java.rmi
Servlets and Java Server Pages (JSP)
Request-response model
Packages javax.servlet
javax.servlet.http
javax.servlet.jsp
javax.servlet.tagext
Form the Web tier of J2EE
Servlet Overview and Architecture
Servlet container (servlet engine)
Server that executes a servlet
Web servers and application servers
Netscape iPlanet Application Server
Microsoft’s Internet Information Server (IIS)
Apache HTTP Server
BEA’s WebLogic Application Server
IBM’s WebSphere Application Server
World Wide Web Consortium’s Jigsaw Web Server
Setting Up the Apache Tomcat Server
Download Tomcat (version 3.2.3)
Jakarta.apachebuilds/jakarta-tomcat/release/v3.2.3/bin/
Define environment variables
JAVA_HOME
TOMCAT_HOME
Start the Tomcat server
tomcat start
Launch the Tomcat server
http://localhost:8080/
Multi-Tier Applications: Using JDBC from a Servlet
Three-tier distributed applications
User interface
Business logic
Database access
Web servers often represent the middle tier
Three-tier distributed application example
SurveyServlet
Survey.html
Cloudscape database