|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/java-servlets-training/
课程评论:没有评论
课程名称:Java Servlets 认证培训(从初学者到高级) 课程概述:欢迎参加Uplatz的Java Servlets课程。Servlet是一种Java编程语言类,用于扩展托管通过请求-响应编程模型访问的应用程序的服务器功能。虽然Servlet可以响应任何类型的请求,但它们通常用于扩展Web服务器托管的应用程序。Servlet技术位于服务器端,生成动态网页,用于创建Web应用程序。Java Servlet作为Web浏览器/ HTTP客户端与数据库或HTTP服务器上的应用程序之间的中间层。Servlet是一个运行在容器内部的Java类,允许处理HTTP请求并生成动态网页。 本课程涵盖了服务器端Java编程和Web协议的入门知识,学习Java Servlets架构、请求/响应周期、Servlet生命周期,以及如何构建解析和/或生成HTML表单的互动Web应用程序。还探讨了多种Servlet应用程序架构模式,并通过JDBC开发多层应用程序以访问关系数据库。 本培训将帮助学员在程序开发和声明性开发之间实现重要的分离概念,使Web应用尽可能便携和易于管理。此外,课程介绍了JavaBeans的使用,作为共享组件之间的标准业务和数据对象,以及如何在会话范围或通过请求转发来共享这些对象。最后,学员将学习如何实现过滤器,以在请求和响应的前后处理中改进现有Servlet。 学习内容包括: - 了解Java Servlets在Java 2企业版架构中的角色及其在HTTP应用开发中的最佳应用 - 使用请求和响应对象处理CGI参数并生成HTML响应 - 创建交互式Web应用程序以及管理与HTTP客户端的复杂会话 - 理解JDBC在Java持久化中的角色,并在Servlet应用程序中使用JDBC - 实现Servlet过滤器和监听器以及使用JavaServer Pages技术(JSP)创建和维护JSP页面 Servlet生命周期包括加载Servlet、初始化Servlet、处理请求和销毁Servlet的四个阶段。课程将逐步指导学员创建Servlet,编译并部署项目。 本课程面向初学者和希望构建Web应用程序或J2EE组件的经验丰富的Java程序员,适合想在Java应用开发领域深入学习和应用的人士。
A warm welcome to the Java Servlets course by Uplatz.A Servlet is a Java Programming language class that is used to extend the capabilities of servers that host applications accessed by means of a request-response programming model. Although servlets can respond to any type of request, they are commonly used to extend the applications hosted by web servers. It is also a web component that is deployed on the server to create a dynamic web page.Servlet Technology resides at server side and it generates dynamic web page, used to create web application. Java Servlets are programs that act as a middle layer between a requests coming from a Web browser / HTTP client and databases or the applications on the HTTP server.Servlet is a Java class that runs inside the container. It allows you to process the HTTP request and generate dynamic web pages, but it's more Java then HTML like you need to code HTML inside Java, which is both erroneous and not recommended. Servlet is mainly used as a Controller in web applications created using the MVC design pattern. One of the famous examples of that is the DispatcherServlet of Spring MVC framework, which acts as a front controller. Its job is to receive request and process it, but the view generate or dynamic web page generation functionality is passed down to JSP. Though it provides the data that need to be shown in JSP, which makes the view part of the Model View Controller (MVC) design pattern.Before servlets, we had CGI i.e. Common Gateway Interface. It is a standard way for a Web server to pass a user's request to an application program and receives the response to forward to the user. When the user requests a Web page, the server sends back the requested page. However, when a user fills out a form on a Web page and sends it in, it is processed by an application program. The Web server typically passes the form information to a small application program. This program processes the data and sends back a confirmation message. This process of passing data back and forth between the server and the application is called the common gateway interface (CGI). It is part of the Web's Hypertext Transfer Protocol.This practical, application-oriented Java Servlets training by Uplatz teaches Java Servlets technology and shows how to use it to develop simple to complex web applications. It is intended for both the beginners as well as experienced Java (J2SE) programmers who want to build web applications or J2EE components and systems.The Java Servlet course begins with an overview of server-side Java programming and web protocols. Then students learn the Java Servlets architecture, the request/response cycle, and servlet life cycle, and how to build interactive web applications that parse and/or generate HTML forms. Several prominent patterns for servlet application architecture are considered. Sessions are studied as a means to developing sophisticated client/server conversations over several HTML pages. Multi-tier applications are developed using servlets and JDBC for access to relational databases.This Java Servlet training develops the important concept of the separation of programmatic and declarative development: use of configuration and context information in lieu of hard-coded values, resource locations, etc., to make the web application as portable and easy to administer as possible. The course introduces JavaBeans as a standard for business and data objects that can be shared among servlets and JSPs, and develops techniques for sharing such objects at session scope or by request forwarding. Finally, students learn how to implement filters to adapt existing servlets by pre- and post-processing the request and response.Java Servlets - course syllabusIntroduction to WorldWideWebUnderstanding static and Dynamic webpagesHow to create a HelloWorld application using servletsServlet interface, Generic and HttpServlet interfacesAnnotation and Xml based configuration in ServletsDifference between Get & PostHow Servlet works (Life cycle)Load On Startup ConfigurationRequest Scope in ServletsRequsetDispatcher interfaceInterservlet communication using Response.sendRedirectServletConfigServletContextSession Tracking using cookiesHiddenFormFieldsURL RewritingHttpSessionFilters in servletsFilterConfigDatabase connection in servletsCRUD operations using servlets to mysql databaseEvents and Listeners in servletsServletContext ListenerHtttpSessionListenerWhat you will learn in this Java Servlets courseUnderstand and appreciate the role of Java Servlets in the overall Java 2 Enterprise Edition architecture, and as the best Java solution to HTTP application developmentUse request and response objects provided to a servlet to read CGI parameters and to produce an HTML responseDevelop interactive web applications using HTML forms and servletsManage complex conversations with HTTP clients using session attributesUnderstand the role of JDBC in Java persistence code, and use JDBC for persistence in servlet applicationsPreserve portability and ease of administration for a servlet application by parameterizing servlet code, using initialization parameters, properties files, and JNDIUse JavaBeans classes to share complex business data between componentsImplement filters to adapt existing servlets with new features, and to maximize the decomposition of logic between vertical business functions and horizontal facilitiesUnderstand and manage HTTP sessions in a web applicationCreate servlet filters and listenersWrite pages created with JavaServer Pages technology (JSP pages)Create easy-to-maintain JSP pages using the Expression Language and theJSP Standard Tag Library (JSTL)Use integrated development environments (IDEs) and application serversfor Java EE development and deploymentWrite servlets using the Java programming language (Java servlets)Java Servlets: Servlet ArchitectureThe Java Servlet architecture includes communication interface, protocol used, requirements of client and server, the programming with the languages and software involved. Basically, it performs the below-mentioned tasks.First, it reads the explicit data sent by the clients (browsers). This data can include an HTML form on a Web page, an applet or a custom HTTP client program. It also reads implicit HTTP request data sent by the clients (browsers). This can include cookies, media types and compression schemes the browser understands, and so forth.After that, the servlet processes the data and generate the results. This process may require communicating to a database, executing an RMI, invoking a Web service, or computing the response directly.After processing, it sends the explicit data (i.e., the document) to the clients (browsers). This document can be sent in a variety of formats, including text (HTML or XML), binary (GIF images), or Excel formats.Finally, it also sends the implicit HTTP response to the clients (browsers). This includes telling the browsers or other clients what type of document is being returnedServlet Life CycleThe Servlet life cycle mainly includes the following four stages,Loading a ServletInitializing the ServletRequest handlingDestroying the ServletJava Servlets: Steps to Create ServletCreate a directory structureCreate a ServletCompile the ServletAdd mappings to the web.xml fileStart the server and deploy the projectAccess the servlet