Dynamic Multi-Condition Query Implementation in Java Web Applications
Developing a flexible search interface is a common requirement in web applications. This article details the implementation of a dynamic multi-condition query feature within a Java web application, allowing users to combine multiple search criteria with various logical operators (AND, OR, NOT) and match types (exact, fuzzy).
The user interface ...
Posted on Fri, 06 Nov 2026 16:39:08 +0000 by ksas025
Building a Minimal Tomcat-Like Server in Java
An HTTP request sent by a browser contains a method, path, and headers. To represent this server-side, we define a class that parses the raw input stream.
package tomcat;
import java.io.IOException;
import java.io.InputStream;
public class IRequest {
private String url;
private String method;
public IRequest(InputStream inputStre ...
Posted on Tue, 03 Nov 2026 16:54:44 +0000 by Hurklefish
Understanding Java Servlet Filters
Understanding Java Servlet Filters
What are Filters
In Java, a filter is a component used for preprocessing and postprocessing of requests and responses within a servlet container. Filters can be utilized to perform various tasks such as modifying request and response content, authenticating users, logging, and more. They represent an important ...
Posted on Sat, 31 Oct 2026 16:21:44 +0000 by mryno
Working with HTTP Cookies in Java Servlets
HTTP cookies provide a mechanism for web servers to store small fragments of stateful data on the client side. During an initial response, the server instructs the browser to store specific key-value pairs. On subsequent requests to the same domain, the browser automatically attaches these cookies to the HTTP headers, enabling session tracking ...
Posted on Wed, 28 Oct 2026 16:33:02 +0000 by kim
Implementing Single-Table CRUD Operations Using Pure Servlet Technology
Database Tible Setup
CREATE TABLE department (
dept_id INT PRIMARY KEY,
dept_name VARCHAR(255),
location VARCHAR(255)
);
INSERT INTO department(dept_id, dept_name, location) VALUES(10, 'Sales', 'Beijing');
INSERT INTO department(dept_id, dept_name, location) VALUES(20, 'R&D', 'Shanghai');
INSERT INTO department(dept_id, dept_na ...
Posted on Tue, 27 Oct 2026 16:14:57 +0000 by cecilieuk
Spring MVC DispatcherServlet Internals: Initialization, Request Handling, and View Rendering
DispatcherServlet Initialization
The front controller, responsible for accepting client requests and dispatching them to the appropriate handler. As the entry point of the request processing flow, it implements the Servlet interface. It is essentially a Servlet.
During servlet initialization, the init method is called. Tracing up the parent cl ...
Posted on Tue, 27 Oct 2026 16:11:48 +0000 by Talon
Sharing ServletRequest with Background Threads: Pitfalls and Solutions
Scenario Setup
Consider a minimal Spring Boot controller that offloads work to a simple background thread while passing the incoming HttpServletRequest object:
@GetMapping("/fetchData")
public String fetchData(HttpServletRequest incomingRequest) {
String initialValue = incomingRequest.getParameter("code");
System.out ...
Posted on Sun, 25 Oct 2026 16:45:11 +0000 by Teach
Mastering Java Web Development with Servlets and JSP
Servlets and JavaServer Pages (JSP) remain foundational technologies for building dynamic, server-side web applications in the Java ecosystem. Though newer frameworks have emerged, understanding these core components provides critical insight into request handling, view rendering, and state management in traditional Java EE and Jakarta EE web a ...
Posted on Wed, 14 Oct 2026 16:10:05 +0000 by gammaster
Java Handling of UTF-8 Encoded Query Parameters
When working with Java web applications, it is essential to manage query parameters correctly, especially when they contain non-ASCII characters like Chinese. This article explains how to retrieve and decode UTF-8 encoded query parameters in Java, along with code examples.
Encdoing Mechanism for Query Parameters
Query parameters are typically e ...
Posted on Tue, 13 Oct 2026 16:08:11 +0000 by adam_gardner
Practical Implementation of JSP, EL Expressions and JSTL Tag Library for Java Web Development
JSP Core Directives
JSP directives control how the JSP engine parses and compiles the current page. There are 3 standard directive types:
Page Directive
Configures page-level properties, syntax reference:
<%@ page
language="java"
import="java.util.*,com.example.entity.Employee"
pageEncoding="UTF-8"
ses ...
Posted on Mon, 12 Oct 2026 16:26:42 +0000 by Katmando