SupportWriter space ↗
REFERENCE LIBRARY

References from other publishers

Republished articles with source attribution. This collection is separate from Diary Coding’s original guides and does not display ads.

Read original guides → · Editorial policy

FOR YOUR CURIOSITY

Latest notes.

SERVLET / NOTES</>↗
Servlet22 Apr 2025

How do I serve static files through a Jakarta Servlet?

To serve static files (e.g., HTML, CSS, JavaScript, images) using a Jakarta Servlet, you can follow these steps. Jakarta Servlets provide a way to read files from a directory (or resources) and serve them as HTTP responses. Here’s a guide on how to achieve it: 1. Directory Structure Your project structure should look something like […]

Wayan · 5 min read
BASIC / NOTES</>↗
Basic22 Apr 2025

How to Use Java 17 Text Blocks for Multiline Strings

Java 17 introduced text blocks to simplify the use of multiline strings, making it much easier to include and manage multiline text in your Java applications. Text blocks were actually introduced in Java 15 but were further refined and are fully supported in Java 17. What Are Text Blocks? A text block is a multiline […]

Wayan · 3 min read
SERVLET / NOTES</>↗
Servlet21 Apr 2025

How do I share data between servlets using ServletContext?

In Java Servlets, you can share data between servlets using the ServletContext object. The ServletContext is an application-wide object that all servlets in a web application can access. It allows servlets to share information. Here’s how you can use it: Steps to Share Data Using ServletContext: Set Attribute in ServletContext: A servlet can store an […]

Wayan · 3 min read
BASIC / NOTES</>↗
Basic21 Apr 2025

How to Install and Set Up Java 17 on Your System

To install and set up Java 17 on your system, follow the steps below. The process may vary slightly depending on your operating system. On Windows Download Java 17 Go to the official Oracle JDK download page or OpenJDK 17 Downloads if you prefer an open-source version. Select the appropriate installer for your Windows version […]

Wayan · 3 min read
SERVLET / NOTES</>↗
Servlet20 Apr 2025

How do I initialize servlet parameters with ServletConfig?

You can initialize servlet parameters in a Java Servlet by using the ServletConfig object. The ServletConfig object contains initialization parameters and configuration data for a specific servlet. These parameters are specified in the web application’s deployment descriptor (web.xml file). Here’s a step-by-step guide to using ServletConfig for initializing servlet parameters: 1. Define Initialization Parameters in […]

Wayan · 3 min read
SERVLET / NOTES</>↗
Servlet20 Apr 2025

How do I create a servlet filter using Filter and FilterChain?

Creating a servlet filter using the Filter interface and FilterChain is straightforward in Jakarta EE (or Java EE). A filter is used to perform filtering tasks like logging, authentication, authorization, etc., on requests or responses. Here’s how you can create a servlet filter step by step: Steps to Create a Servlet Filter Implement the Filter […]

Wayan · 4 min read
✳

Knowledge grows when shared.

Stay curious. There is always something new to learn.

Explore notes ↗
Putu Adi Guna Permana
ABOUT THE AUTHOR

Dr (C). Ir. Putu Adi Guna Permana, S.Kom., M.Kom., IPM., ASEAN Eng.

Writer and founder of Diary Coding — sharing notes, tutorials, and experiences about programming for anyone who wants to keep learning.