* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Download Web Servlets and JSP
Survey
Document related concepts
Transcript
JSP - Version: 1.14 - 10/05/2017 Web Servlets and JSP 3 days Course Course Description Discover Sun’s cutting edge technologies for building backend Web applications, in a 3 days course dealing with Servlets and JSP. We begin with a quick overview of Web basics and server side programming, followed by an introduction to J2EE Web Applications and Java Servlets. We then deal with the technology’s pros and cons and explore its commonly used features, including request manipulations, threading issues, session tracking and cookies. Once students are comfortable with the world of Servlets, we continue our journey by looking at things from the JSP point of view. We teach the various nuances of JSP by comparing it to its ancestor, and learn to optimize our applications using Java Beans. Intended Audience This course is intended for Skilled Java Programmers and Team leaders. Prerequisites • A working knowledge of Java. • A basic knowledge of HTML. Objectives • A better understanding of the Servlets and JSP technologies • A good foundation for building server-side applications in Java. Reading Topics • Web Basics o The Internet o The OSI Model o The Internet Protocol o Transmission Control Protocol o Domain Name System o Ports o Uniform Resource Locator o Hypertext Transfer Protocol o HTTP Messages o Request Methods o MIME o Proxy and Firewall o The Big Picture • Servlets Basics o Why Use Server Side Programming o Other Technologies o Why Use Servlets o So What Is JSP ? o Application/Applet/Servlet o Web Servers o Web Containers o The Big Picture o A Typical Servlet o How Servlets Work o Servlet’s Life Cycle • J2EE Web Applications o Some Terminology o The J2EE Big Picture o Web Applications o The web.xml Deployment Descriptor o Web.xml – Document Definition o Web.xml – Adding Servlets o Web.xml – Mapping Servlets o Web.xml – Sending Parameters o Web.xml – Pre-loading Servlets o The Directory Structure o Web Application Archive o Deploying Web Applications • Servlets API o Servlets Packages o Main Classes Hierarchy o HttpServlet o DoGet() Method o DoPost() Method o Generating the Response o The HttpServletRequest Object o Getting Parameters o Getting Parameters – Multiple Values o Getting Parameters – Generic Names o The init() and destroy() Methods o ServletContext o Sharing Resources o Getting Initialization Parameters o Logging o Threading Issues o Synchronizing Data o SingleThreadModel o Request Dispatching o The RequestDispatcher Interface o Response Redirection • Cookies and Session Management o Motivation o Back to the Stone Age o Cookies o Sending and Receiving Cookies o Expiration Date o HttpSession o The HttpSession Interface o Summary o Application Life Cycle o Overview o How Does It Work ? o Registering Listeners o ServletContextListener o ServletContextAttributeListener o HttpSessionListener o HttpSessionAttributeListener o HttpSessionBindingEvent • Java Server Pages o What is JSP o But We Already Have Servlets o Divide and Conquer o Choose One o Enjoy the Best of Both World o How Does it Work • JSP API o JSP Basics o JSP Comments o Regular Static HTML o The Page Directive o Available Packages o JSP Scripting Elements o Expressions o Declarations o Scriptlets o Implicit Objects o The Request Object o The Out Object o The Include Directive o The Include Action o The Forward Action o The Param Action o Cookies o Handling Errors o Summary • JSP and Java Beans o Adding Some Magic Beans o Beans Conventions o Using Beans – Getting a Handle o Using Beans – Getting a Property o Using Beans – Setting a Property o Scopes o The Request Scope o The Session Scope and Implicit Object o The Application Scope and Application Object o Useful Resources Follow on courses