L07-Http - Session 7 Http Session 7 Deployment Descriptor...

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

View Full Document Right Arrow Icon
Session 7 – Http 9/22/2010 1 © Robert Kelly, 2001-2010 Session 7 Deployment Descriptor Http 1 Reading and Reference Reading en.wikipedia.org/wiki/HTTP Reference Table of deployment descriptors download-llnw.oracle.com/docs/cd/E13222_01/wls/docs81/ webapp/web_xml.html http headers © Robert Kelly, 2001-2010 2 en.wikipedia.org/wiki/List_of_HTTP_headers http spec www.ietf.org/rfc/rfc2616.txt?number=2616 Contains http status codes and http header names
Background image of page 1

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

View Full DocumentRight Arrow Icon
Session 7 – Http 9/22/2010 2 © Robert Kelly, 2001-2010 Lecture Objectives Understand the directory structure of a Web application Understand that Http is a stateless, request/response protocol Understand the structure of HTTP messages Recognize the kinds of information that can be © Robert Kelly, 2001-2010 3 transmitted in Http headers (both request and response) Web Application Collection of servlets, JSPs, HTML, images, etc. Can be portably deployed to any servlet-enabled web server Usually packaged in a war file Application root The server maps the application name in the URL to the web app root directory © Robert Kelly, 2001-2010 4 WEB-INF servlets classes lib JSPs web.xml files
Background image of page 2
Session 7 – Http 9/22/2010 3 © Robert Kelly, 2001-2010 WEB-INF Directory Does not contain files served directly to the client Many Web Containers support Contains classes and configuration information for the web app WEB-INF/classes – contains class files for servlets WEB INF/lib contains library Containers support a notation /servlet/xyz for locating the servlet class – but use of web.xml is better © Robert Kelly, 2001-2010 5 WEB-INF/lib – contains library classes - stored in jar files Deployment Descriptor (web.xml) web.xml file is the deployment descriptor – allows Web applications to be deployed An xml file (50+ defined elements) Contains configuration information Provides url string mapping, servlet name/class mapping, security, etc.
Background image of page 3

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

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

Page1 / 12

L07-Http - Session 7 Http Session 7 Deployment Descriptor...

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

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