Latest Updates

Documenting code, one commit at a time.

Streamlining Application Logic with Servlet Controllers

Introduction

Developing web applications often involves managing complex interactions between the user interface and the backend logic. Using Servlets as Controllers can help to organize request handling and application flow.

The Challenge

Without a well-defined structure, web applications can become difficult to maintain and scale. Handling user requests directly within JSPs or tightly

Read more

Enhancing Web Application Security with Filters in Java

Introduction

This post discusses how to enhance the security of web applications using filters in Java. Filters provide a way to intercept and process requests before they reach servlets or other resources, allowing for centralized security checks and request modification.

Securing Pages with Filters

Filters can be used to implement various security measures, such as authentication,

Read more
Java HTTP API

Implementing POST Requests in Java Applications

Introduction

Adding POST request functionality to a Java application enables it to send data to a server, which is crucial for creating, updating, or processing information. This guide outlines how to implement POST requests effectively using Java.

Setting Up the Connection

To begin, you'll need to establish an HTTP connection to the server. Here's how to do it:

Read more