Jakarta EE Servlet
Get the base URL from the object of the HttpServletRequest class in Jakarta EE
I have shown you how to Get the base URL in the JSP page and Get base URL in Controller in Spring MVC and Spring Boot. In addition to the above methods, to be able to get the base URL of a Java web application from… Read More
Using Thymeleaf in Jakarta EE Servlet
In this tutorial, I show you how to integrate Thymeleaf with Jakarta EE Servlet to replace using JSP in Jakarta EE Servlet applications. First, I will create a new Jakarta EE Servlet Maven project as an example: Thymeleaf dependency is as follows:
|
1 2 3 4 5 |
<dependency> <groupId>org.thymeleaf</groupId> <artifactId>thymeleaf</artifactId> <version>3.1.0.M1</version> </dependency> |
I will… Read More
Talking about ServletContext and ServletConfig in Jakarta EE Servlet
ServletContext is an object instantiated by Web Container when we deploy a Jakarta EE web application. It is used to store and retrieve information that we configure for all the Servlets present in the application. And ServletConfig helps us get information defined for a particular… Read More
ServletContextEvent and ServletContextListener in Jakarta EE Servlet
ServletContextEvent and ServletContextListener are two objects of Jakarta EE Servlet that are responsible for recording and handling changes in the ServletContext of a web application when this web application is deployed to the Server Runtime. Any changes to the ServletContext, the ServletContextEvent will log and… Read More
Learn about HttpServlet in Jakarta EE Servlet
HttpServlet is one of the Jakarta EE Servlet objects that help us build web-based applications with Java. How is it in details? Let’s find out together in this tutorial! First, I will create a new Maven project for the Jakarta EE application as an example,… Read More
Create Jakarta EE application in Eclipse
I had a tutorial about creating Jakarta EE application using Maven in Eclipse, this tutorial I will show you how to create a project for Jakarta EE application in Eclipse that does not support Maven! First, in Eclipse, go to File, select New, then select… Read More
Create Jakarta EE application using Maven
In this tutorial, I will guide you to create a new Jakarta EE application using Maven. You can use any Java IDE that supports Maven such as Eclipse, IntelliJ, .. or use the Maven command line! I will use Eclipse in this tutorial. First, in… Read More
