Original PDF Flash format server-side-java-programming-with-servlets-and-jsps  


Server Side Java Programming With Servlets And Jsps



Course Description


Server-Side Java Programming with Servlets and JSPs


Course #
JV-391

Type Instructor-Led


Category Technical


Length

5 Days


Summary
This course covers the Java technologies used to develop Java Web applications.
The key topics discussed are Java Servlets, JavaServer Pages (JSP) and XML.
Students will learn: the details of developing and deploying servlets and JSP pages,
how to design Java Web applications using the Model-View-Controller (MVC)
design, how JavaBeans fit into the MVC design, using JDBC and JavaBeans to
create Data Access Objects. Students will learn how to deploy and administer Java
Web applications on Apache Tomcat using the mySQL database.


Highlights
Servlets
Overview of Servlets: Programs that run in a Web server.
Server-side Development: Options for creating Web applications.
Advantages of Servlets: Powerful, portable and secure.
The Servlet API: The javax.servlet and javax.servlet.http packages.
HTTP: The Hypertext Transfer Protocol.
Requests: The HTTP Request header.
Responses: The HTTP Response header.
HTML Basics: A quick introduction to HTML and its syntax.
HTTP Servlets: The HttpServlet class.
The "Hello, World" Servlet: A simple HTTP servlet handling a GET
request.
The Lifecycle of a Servlet: The servlet container.
A Servlet Counter: A demonstration of the lifecycle of a servlet.
HttpServletRequest: Encapsulating the HTTP request header of a client
request.
HttpServletResponse: Encapsulating the HTTP respone to a client.
Parameters: Obtaining data from the client request.
The Request Dispatcher: Including servlets and forwarding requests to
other servlets.
Scope: Understanding the various scopes an object can have within a
Centriq University 913-696-5300 www.centriq.com


servlet container.
Request Scope: Objects associated with a client request.
Application Scope: A container-wide object.
Session Scope: Creating client sessions.
Cookies: A sweet session tracker.
The HttpSession Interface: Container session objects.
URL Rewriting: Encoding a URL.
Servlet Threading Models: The SingleThreadModel.
Connecting to a Database: JDBC within a servlet.
Server-side Includes: A servlet embedded in an HTML page.

JavaBeans

Overview of JavaBeans: Java software components.
The Bean Development Kit: The bean specification and Sun’s beanbox.
Properties: Adding properties to a bean.
Methods: A bean’s behavior.
Events: How beans communicate with each other.

JDBC

Overview of JDBC: An API for communicating with databases.
JDBC Drivers: Understanding the various types of drivers available for
JDBC.
Connecting to a Database: Loading the appropriate driver and making the
connection.
Statements: Executing SQL statements.
Prepared Statements: Executing precompiled SQL statements.
Results: Working with result sets.

JavaServer Pages
Server-side Development: Comparing JSP to other technologies.
Overview of JavaServer Pages: Java technology for creating dynamic
Web content.
JSP Lifecycle: Translation of JSP into servlets.
An Introduction to Servlets: Understanding how servlets run on a Web
server.
"Hello, JSPs": A simple JavaServer Page.
JavaServer Page Tags: The various JSP tags.
Templating: The include directive.
Declarations: Declaring variables and methods.
Expressions: Java statements within a JSP.
The request Object: The request header information.
Parameters: Request data passed in to the JSP.
Scriptlets: Embedding Java code within a JSP.
Directives: Specifying options for the page.
Implicit Objects: The implicit objects of a JSP.
JSP Actions: The action tags of JSP.
Overview of JavaBeans: Java software components.
Centriq University 913-696-5300 www.centriq.com


JavaBeans in JSPs: The useBean directive.
Error Pages: Handling exceptions in JSP.
Scope: The four scopes of JSP objects.
Sessions: Creating sessions within JSP.
Request Scope: Associating data with the request.
Application Scope: The implicit application object.
Session Scope: Creating client sessions.
The Implicit Session Object: Session tracking made easy.
Beans with Session Scope
Custom Tags and JSTL
Creating your own JSP tags
Writing Tag Handler classes
The Tag Library Definition File
The JSP Standard Template Library

Who should
Beginning Java programmers new to JDBC and JavaBeans who need to learn how
attend
to develop Web applications using the various Java technologies like Servlets,
JavaServer Pages, and XML.


Prerequisites Students have completed JV 200, be familiar with the Java language and have
experience with HTML. Familiarity with SQL is also helpful.


At Course
• Understand the various components in a Java Web application.
Completion
• Learn how Servlets and JavaServer Pages fit into the J2EE environment.
• Understand the Model-View-Controller design of a Java Web application.
• Learn how to install and setup the Tomcat Web server and mySQL database
server.
• Understand the lifecycle of a Java servlet and JavaServer Page.
• Learn how to write and a deploy a Java servlet and JavaServer Page.
• Understand the directory structure of Java Web applications.
• Understand the various scopes an object can have in a servlet container.
• Learn how to include and forward a request to another Web component.
• Learn how to create client session in JSP and servlets.
• Understand how JavaBeans are used to create Data Access Objects.
• Learn how to access data in a database using JDBC.
• Learn how to write effective and useful servlets and JSP pages.
• Understand the various elements of a JavaServer Page.
• Learn how to create a custom JSP tag library.
• Learn how to use the JSP Standard Tag Library.
• Understand XML, including its uses, syntax and advantages.
• Learn how to develop Java applications that create and use XML documents.



Centriq University 913-696-5300 www.centriq.com