dir.by  
  Search  
Programming, development, testing
Java
Java web application (servlet, jsp page, basic functionality and no frameworks)
What is a dynamic web page jsp (Java Server Page) ?
  Looked at 1201 times    
 What is a dynamic web page jsp (Java Server Page) ? 
last updated: 20 February 2025
Java Server Page represents a technology that allows you to create a dynamic web page. Originally, JSP (along with servlets) in the early days of Java EE were the dominant approach to web development in Java. And although they have now given way to another technology - JSF, nevertheless JSP continue to be widely used.

In fact, Java Server Page or JSP is html code interspersed with the code Java. At the same time, pages JSP are not standard html pages. When a request comes to a particular page JSP, the server processes it, generates code html from it, and sends it to the client. As a result, after accessing the page JSP, the user sees a regular html page in his browser.

Like regular static web pages, JSP files must be placed on a web server that can be accessed by ordinary users using the http protocol, for example, by typing the desired address in the address bar of the browser.
  index.jsp
<%
     String header = "Hello!";
%>

<!DOCTYPE html>
<html>
     <head>
          <meta charset="UTF-8" />
          <title>Good morning!</title>
     </head>
     <body>
          <h2><%= header %></h2>
          <p>Today <%= new java.util.Date() %></p>
     </body>
</html>
 
← Previous topic
What is Maven
 
Next topic →
How to install Smart Tomcat plugin in Intellij Idea
 
Your feedback ... Comments ...
   
Your Name
Your comment (www links can only be added by a logged-in user)

  Объявления  
  Объявления  
 
Download and install
Installation JDK (download and install the Java library for Windows)
Download and install IntelliJ IDEA to explore Java, Spring, Jakarta EE | Functionality and differences: Community | Ultimate
Learn the language Java (class, interface, properties, etc.)
Create a simple console app in IntelliJ IDEA to learn Java
What is interface in Java ?
Directly in the code (at runtime) we make an implementation for the interface | Java
Java web application (servlet, jsp page, basic functionality and no frameworks)
Creating a new simple web application (jsp web page) | Java, Maven
Create a web servlet (the servlet is located on the web server, returns the result on request) | Java
Installation Tomcat web server (download and install for Windows)
Check, test Tomcat web server (create a new my.hml file)
What is Maven
What is a dynamic web page jsp (Java Server Page) ?
How to install Smart Tomcat plugin in Intellij Idea
Error "The SDK is not specified for module ... | Project SDK is not defined ..." in IntelliJ IDEA | Java
Spring in Java (Spring Framework, Spring Data, Spring Boot, ...)
What is Spring? Why use Spring in Java?
What is Spring Bean? What is Spring Container? IoC (inversion of control) | Creating a simple Spring project and configuration Spring Container in an XML file | Editor IntelliJ Idea and language Java
What is Dependency Injection in Spring? Creating a simple Spring project with Dependency Injection in the constructor with the attributes @Component, @Autowired | Editor IntelliJ Idea and language Java
Creating a new Spring web application (Controller responds to request) | Java, Spring Web, Spring Boot, Maven
Creating a new Spring WebSocket application (Java WebSocket sends a message to the JavaScript WebSocket) | Java, Spring WebSocket, Spring Boot, Maven
Create Azure Web App with the type Java (free). That is, create an empty web server
Put the Java Spring web application in Azure
Connect to the application Azure Web App (Java) via FTP | use File Explorer
Error "The SDK is not specified for module ... | Project SDK is not defined ..." in IntelliJ IDEA | Java, Spring Boot
How to install Spring WebSocket plugin in Intellij Idea
Jakarta EE / Java EE in Java (Web Applications, Web Services)
What is Jakarta EE (Java EE)? | In which editor (program) is it convenient to write Jakarta EE (Java EE) code?
Creating a simple web project in IntelliJ Idea Ultimate | Jakarta EE (Java EE)
Struts in Java (extends API Java Servlet using MVC)
What is Struts | Java
Interviews on Java

  Ваши вопросы присылайте по почте: info@dir.by  
Яндекс.Метрика