|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/jsp-by-digiflax/
课程评论:没有评论
课程名称:JSP - Java全栈 课程概述: Jakarta Server Pages(JSP)是一系列技术,旨在帮助软件开发人员基于HTML、XML、SOAP或其他文档类型创建动态生成的网页。JSP于1999年由Sun Microsystems发布,类似于PHP和ASP,但使用Java编程语言。要部署和运行Jakarta Server Pages,需要一个兼容的Web服务器与 Servlet容器,例如Apache Tomcat或Jetty。从架构上看,JSP可被视为Java Servlet的高级抽象。JSP在运行时会被转换为Servlet,因此JSP本质上是一种Servlet;每个JSP Servlet会被缓存并重用,直到原始JSP被修改。 Jakarta Server Pages可以独立使用,也可以作为服务器端模型-视图-控制器设计的视图组件,通常与JavaBeans作为模型和Java Servlets(或如Apache Struts等框架)作为控制器结合使用。这是一种模型2架构。JSP允许将Java代码和某些预定义操作与静态网页标记内容(如HTML)交错。最终生成的页面在服务器上编译和执行,以提供文档。这些编译后的页面和任何依赖的Java库包含Java字节码,而不是机器码。与其他.jar或Java程序一样,代码必须在Java虚拟机(JVM)中执行,该虚拟机与服务器的主机操作系统互动,以提供一个抽象的、平台无关的环境。JSP通常用于生成HTML和XML文档,但通过使用OutputStream,也可以传递其他类型的数据。 Web容器会创建JSP隐式对象,如请求(request)、响应(response)、会话(session)、应用程序(application)、配置(config)、页面(page)、页面上下文(pageContext)、输出(out)和异常(exception)。JSP引擎在翻译阶段创建这些对象。 课程大纲:无
Jakarta Server Pages (JSP; formerly JavaServer Pages) is a collection of technologies that helps software developers create dynamically generated web pages based on HTML, XML, SOAP, or other document types. Released in 1999 by Sun Microsystems,[1] JSP is similar to PHP and ASP, but uses the Java programming language.To deploy and run Jakarta Server Pages, a compatible web server with a servlet container, such as Apache Tomcat or Jetty, is required.Architecturally, JSP may be viewed as a high-level abstraction of Java servlets. JSPs are translated into servlets at runtime, therefore JSP is a Servlet; each JSP servlet is cached and re-used until the original JSP is modified.Jakarta Server Pages can be used independently or as the view component of a server-side model-view-controller design, normally with JavaBeans as the model and Java servlets (or a framework such as Apache Struts) as the controller. This is a type of Model 2 architecture.JSP allows Java code and certain predefined actions to be interleaved with static web markup content, such as HTML. The resulting page is compiled and executed on the server to deliver a document. The compiled pages, as well as any dependent Java libraries, contain Java bytecode rather than machine code. Like any other.jar or Java program, code must be executed within a Java virtual machine (JVM) that interacts with the server's host operating system to provide an abstract, platform-neutral environment.JSPs are usually used to deliver HTML and XML documents, but through the use of OutputStream, they can deliver other types of data as well.The Web container creates JSP implicit objects like request, response, session, application, config, page, pageContext, out and exception. JSP Engine creates these objects during translation phase.