HTML <--- JSP <---- JS <---- Java controller <---- DAO <---- Database

the structure of the project (MVC)
the structure of the project (MVC)
The JSP Model 2 architecture.

Architecturally, JSP may be viewed as a high-level abstraction of Java servlets. JSPs are translated into servlets at runtime; each JSP's servlet is cached and re-used until the original JSP is modified.[2]

JSP 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.[3]

JSP allows Java code and certain pre-defined actions to be interleaved with static web markup content, with the resulting page being compiled and executed on the server to deliver a document. The compiled pages, as well as any dependent Java libraries, use Java bytecode rather than a native software format. Like any other Java program, they must be executed within a Java virtual machine (JVM) that integrates 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.[4]

The Web container creates JSP implicit objects like pageContext, servletContext, session, request & response.

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-19
  • 2021-07-09
  • 2021-08-15
  • 2021-07-10
  • 2021-10-03
  • 2021-04-05
猜你喜欢
  • 2021-10-14
  • 2021-04-11
  • 2022-01-18
  • 2021-05-19
  • 2022-01-01
  • 2022-12-23
相关资源
相似解决方案