ServletBasics_speakernoted

ServletBasics_speakernoted - 03/17/2006 Servlet Basics 1 In...

Info iconThis preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
1 1 Servlet Basics In this session, I will talk about basic concepts of a Servlet. And during the next class, we will talk about more advanced topics of a Servlet. 03/17/2006
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2 2 Disclaimer & Acknowledgments ? Even though Sang Shin is a full-time employee of Sun Microsystems, the contents here are created as his own personal endeavor and thus does not reflect any official stance of Sun Microsystems. ? Sun Microsystems is not responsible for any inaccuracies in the contents. ? Acknowledgements The slides and example code of this presentation are from “Servlet” section of Java WSDP tutorial written by Stephanie Bodoff of Sun Microsystems Some slides are borrowed from “Sevlet” codecamp material authored by Doris Chen of Sun Microsystems Some example codes are borrowed from “Core Servlets and JavaServer Pages” book written by Marty Hall 03/17/2006
Background image of page 2
3 3 Revision History ? 12/24/2002: version 1 (without speaker notes) by Sang Shin ? 01/04/2003: version 2 (with partially done speaker notes) by Sang Shin ? 01/13/2003: version 3 (screen shots of installing, configuring, running BookStore1 are added) by Sang Shin ? 04/22/2003: version 4: Original Servlet presentation is divided into “Servlet Basics” and “Servlet Advanced” speaker notes are added for the slides that did not have them, editing and typo checking are done via spellchecker (Sang Shin) 03/17/2006
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
4 4 Topics ? Servlet in big picture of J2EE ? Servlet request & response model ? Servlet life cycle ? Servlet scope objects ? Servlet request ? Servlet response: Status, Header, Body ? Error Handling So what are we going to talk about in this session? First, we will take a look at Servlet from the standpoint of J2EE architecture, that is, what role Servlet plays in a multi-tier web-based application. We will also compare Servlet against JSP. Next we will take a look at the “request and response” model of Servlet. Servlet is basically a web technology in which HTTP request is being received and handled and then proper HTTP response is being created and then returned to the client. Then we will look into Servlet life-cycle, that is, how an instance of Servlet gets created to serve incoming HTTP requests. We will then look into so called “scope objects” which are system objects that can be used to store system and application specific information. We will then take a look into the internal structure of the servlet request and servlet response, especially HTTP request and HTTP response. We will then take a look at how error handling is done. The advanced servlet topics such as session tracking and servlet filtering will be dealt with in advanced servlet session later on. 03/17/2006
Background image of page 4
5 5 Advanced Topics: ? Session Tracking ? Servlet Filters ? Servlet life-cycle events ? Including, forwarding to, and redirecting to other web resources ?
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 08/08/2010 for the course CS CS680 taught by Professor Singh during the Spring '10 term at Punjab Engineering College.

Page1 / 122

ServletBasics_speakernoted - 03/17/2006 Servlet Basics 1 In...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online