|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/masterclass-from-beginner-to-expert-data-science/
课程评论:没有评论
Coursera 课程总结:JavaServer Pages (JSP) 精通 - 从入门到精通 本课程深入探讨了JavaServer Pages (JSP) 技术,这是一种用于开发动态网页的强大技术。JSP 允许开发者将 Java 代码嵌入 HTML 页面中,通过特殊的 JSP 标签(通常以 `<%` 开头)实现。 **核心内容:** JSP 组件实质上是一种 Java Servlets,专门设计用于充当 Java Web 应用程序的用户界面。Web 开发者可以通过文本文件编写 JSP 页面,其中结合了 HTML/XHTML 代码、XML 元素以及嵌入的 JSP 动作和命令。 **JSP 的主要功能:** * **收集用户输入:** 通过网页表单收集用户信息。 * **数据显示:** 展示来自数据库或其他来源的记录。 * **动态内容生成:** 动态创建网页内容。 * **标签功能:** 利用 JSP 标签执行多种任务,包括: * 从数据库检索信息。 * 注册用户偏好。 * 访问 JavaBeans 组件。 * 页面间的控制传递。 * 请求、页面间的信息共享。 **为何选择 JSP?** 与 CGI 等传统技术相比,JSP 提供了显著的优势: * **卓越性能:** JSP 将动态元素直接嵌入 HTML 页面,无需独立的 CGI 文件,从而提高了性能。 * **编译执行:** JSP 页面在被服务器处理前始终会被编译,而 CGI/Perl 等则需要服务器每次请求都加载解释器和目标脚本。 * **强大的 Java EE 集成:** JSP 基于 Java Servlets API 构建,因此能够访问所有强大的企业级 Java API,如 JDBC、JNDI、EJB、JAXP 等。 * **模型-视图-控制器 (MVC) 支持:** JSP 可与处理业务逻辑的 Servlets 结合使用,支持 Java Servlet 模板引擎的模型。 * **Java EE 核心组件:** JSP 是 Java EE 的重要组成部分,适用于从简单到极其复杂的企业级应用程序。 本课程将带您从 JSP 的基础概念逐步深入,掌握其在现代 Web 开发中的应用。
JavaServer Pages (JSP) is a technology for developing Webpages that supports dynamic content. This helps developers insert java code in HTML pages by making use of special JSP tags, most of which start with.A JavaServer Pages component is a type of Java servlet that is designed to fulfill the role of a user interface for a Java web application. Web developers write JSPs as text files that combine HTML or XHTML code, XML elements, and embedded JSP actions and commands.Using JSP, you can collect input from users through Webpage forms, present records from a database or another source, and create Webpages dynamically.JSP tags can be used for a variety of purposes, such as retrieving information from a database or registering user preferences, accessing JavaBeans components, passing control between pages, and sharing information between requests, pages etc.Why Use JSP?JavaServer Pages often serve the same purpose as programs implemented using the Common Gateway Interface (CGI). But JSP offers several advantages in comparison with the CGI.Performance is significantly better because JSP allows embedding Dynamic Elements in HTML Pages itself instead of having separate CGI files.JSP are always compiled before they are processed by the server unlike CGI/Perl which requires the server to load an interpreter and the target script each time the page is requested.JavaServer Pages are built on top of the Java Servlets API, so like Servlets, JSP also has access to all the powerful Enterprise Java APIs, including JDBC, JNDI, EJB, JAXP, etc.JSP pages can be used in combination with servlets that handle the business logic, the model supported by Java servlet template engines.Finally, JSP is an integral part of Java EE, a complete platform for enterprise class applications. This means that JSP can play a part in the simplest applications to the most complex and demanding