SERVLET / CATATAN</>↗Servlet11 Apr 2025
Handling GET and POST requests in Jakarta Servlets involves overriding the doGet() and doPost() methods provided by the HttpServlet class. Here’s a step-by-step guide: 1. Import Necessary Packages First, ensure you import the jakarta.servlet and jakarta.servlet.http packages in your servlet class. import jakarta.servlet.ServletException; import jakarta.servlet.annotation.WebServlet; import jakarta.servlet.http.HttpServlet; import jakarta.servlet.http.HttpServletRequest; impor...
SERVLET / CATATAN</>↗Servlet11 Apr 2025
In this post I will show you the step-by-step instructions to deploy a WAR file in Tomcat 11: 1. Build Your WAR File A WAR file (.war) is a packaged web application. To build it: If you’re using Maven, run the following command in your project directory: mvn clean package This generates a WAR file […]
SERVLET / CATATAN</>↗Servlet10 Apr 2025
To build a WAR file for your Jakarta EE servlet application, the steps will vary depending on the build tool you are using. In this post I will show you how to use Apache Maven, build it in the IDE, or create it manually. Here’s how you can build a WAR file: 1. Using Maven […]
BASIC / CATATAN</>↗Basic09 Apr 2025
The Java 10 JDK offers several command-line tools for developers to use. Here’s an overview of some useful tools and related features: 1. JShell (Interactive Java REPL) The jshell tool allows developers to experiment interactively by evaluating Java expressions, statements, and code snippets without the need to set up a complete program. It was introduced […]
BASIC / CATATAN</>↗Basic09 Apr 2025
To set up Java 10 and compile your first program, follow these steps. Additionally, you’ll learn about Java 10’s var keyword feature once your setup is complete. Steps to Set Up Java 10 Download Java 10 JDK: Visit Oracle’s Java Archive. Download the Java 10 JDK installer suitable for your operating system. Install Java 10: […]
SERVLET / CATATAN</>↗Servlet09 Apr 2025
To create a basic servlet using the HttpServlet class in Jakarta Servlet API, follow these steps: Steps to Create a Basic Servlet: Create a Java Class Extending HttpServlet: Your servlet class should extend the HttpServlet class provided in the Jakarta Servlet API. Define Servlet Annotations or Configuration: Use the @WebServlet annotation to define the servlet […]