Tagged articles
136 articles
Page 2 of 2
Java Captain
Java Captain
Dec 23, 2019 · Backend Development

Using Asynchronous Requests and Calls in Spring Boot

This article explains how to implement asynchronous requests and asynchronous method calls in Spring Boot, covering servlet‑based async, Callable, WebAsyncTask, DeferredResult, @Async annotation, thread‑pool configuration, common pitfalls, and the differences between async request and async call.

AsynchronousBackend DevelopmentCallable
0 likes · 11 min read
Using Asynchronous Requests and Calls in Spring Boot
MaGe Linux Operations
MaGe Linux Operations
Apr 29, 2019 · Backend Development

Master Tomcat: Install, Configure, and Optimize Your Java Web Server

This guide walks you through Tomcat’s role as a lightweight Java web server, details the prerequisites and step‑by‑step installation, shows how to configure environment variables, adjust ports, and apply performance optimizations such as disabling AJP, switching to NIO, and tuning JVM settings for production use.

BackendConfigurationInstallation
0 likes · 10 min read
Master Tomcat: Install, Configure, and Optimize Your Java Web Server
Java Backend Technology
Java Backend Technology
Apr 1, 2019 · Backend Development

Why Overriding HttpServlet’s service() Is a Bad Idea: Caching Insights

This article explains why developers should avoid overriding the HttpServlet service() method, illustrating how the default implementation handles HTTP cache negotiation, showing concrete servlet examples, and demonstrating the significant traffic and performance benefits of letting the container manage caching automatically.

Backend DevelopmentHTTP CachingJava
0 likes · 9 min read
Why Overriding HttpServlet’s service() Is a Bad Idea: Caching Insights
Java Captain
Java Captain
Mar 17, 2019 · Backend Development

JSP vs Servlet, Built‑in Objects, Scopes, Session vs Cookie, Spring MVC vs Struts, and Web Security Practices

This article explains the differences between JSP and Servlets, lists JSP built‑in objects and scopes, compares Session and Cookie mechanisms, describes session operation and alternatives when cookies are disabled, contrasts Spring MVC with Struts, and outlines common web security measures such as preventing SQL injection, XSS, and CSRF attacks.

CookieJSPServlet
0 likes · 15 min read
JSP vs Servlet, Built‑in Objects, Scopes, Session vs Cookie, Spring MVC vs Struts, and Web Security Practices
Java Backend Technology
Java Backend Technology
Aug 24, 2018 · Backend Development

Mastering Tomcat: A Deep Dive into Its Top‑Level Architecture

This article explains Tomcat’s overall architecture, detailing the relationships among Server, Service, Connector, and Container, and describes how requests flow through ProtocolHandlers, Pipelines, and Valves to reach servlets and return responses.

Backend DevelopmentConnectorContainer
0 likes · 10 min read
Mastering Tomcat: A Deep Dive into Its Top‑Level Architecture
Architecture Digest
Architecture Digest
Aug 11, 2018 · Backend Development

Understanding Synchronous vs Asynchronous, Blocking vs Non‑Blocking, and Full‑Chain Asynchrony in Java Web Applications

This article explains the differences between synchronous, asynchronous, blocking and non‑blocking execution, illustrates their combinations with real‑world analogies, and provides practical guidance on applying servlet async, Spring MVC async, full‑chain async, HTTP client async and database async techniques to improve Java backend throughput and CPU utilization.

HTTP clientJavaServlet
0 likes · 17 min read
Understanding Synchronous vs Asynchronous, Blocking vs Non‑Blocking, and Full‑Chain Asynchrony in Java Web Applications
Java Captain
Java Captain
Jun 20, 2018 · Backend Development

Export Excel Files in Java Using Apache POI

This article demonstrates how to use Apache POI in Java to export collections of JavaBean objects to Excel files, covering generic reflection‑based implementation, styling, handling of dates, booleans, images, and integration with a servlet for download.

Apache POIData ExportJava
0 likes · 12 min read
Export Excel Files in Java Using Apache POI
Java Captain
Java Captain
Jun 9, 2018 · Backend Development

Implementing File Download in a Web Page Using Hyperlinks and a Java Servlet

This article explains how to create a web page that enables downloading zip archives and images by first using simple hyperlink references and then implementing a Java Servlet that streams files with proper MIME types and Content‑Disposition headers, ensuring consistent download behavior across browsers.

BackendFile DownloadHTML
0 likes · 5 min read
Implementing File Download in a Web Page Using Hyperlinks and a Java Servlet
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Jun 5, 2018 · Backend Development

Understanding the Servlet Lifecycle in Java Web Applications

This article explains the Java Servlet lifecycle—including loading, initialization, request handling, multithreading considerations, and destruction—detailing how Tomcat manages servlets, the role of init(), service(), and destroy() methods, and best practices for resource management and thread safety.

BackendJavaLifecycle
0 likes · 7 min read
Understanding the Servlet Lifecycle in Java Web Applications
Java Captain
Java Captain
May 24, 2018 · Backend Development

HttpServletResponse Usage: Sending Data, Managing Encoding, and Implementing File Downloads in Java Servlets

This article explains how HttpServletResponse represents server responses in Java web applications, covering methods for sending data, headers, and status codes, demonstrates outputting Chinese characters via OutputStream and PrintWriter, shows numeric output handling, and provides detailed examples of file download implementations with proper encoding considerations.

FileDownloadHttpServletResponseJava
0 likes · 19 min read
HttpServletResponse Usage: Sending Data, Managing Encoding, and Implementing File Downloads in Java Servlets
Programmer DD
Programmer DD
May 21, 2018 · Backend Development

From web.xml to Spring Boot: How Java Servlets and Filters Evolved

This article walks through the evolution of Java web development, comparing the classic web.xml configuration with Servlet 3.0 annotations, Spring’s ServletContainerInitializer, and Spring Boot’s embedded‑container registration mechanisms, while exposing the underlying source code and initialization flow.

Embedded TomcatInitializationJava
0 likes · 18 min read
From web.xml to Spring Boot: How Java Servlets and Filters Evolved
Java Captain
Java Captain
May 12, 2018 · Backend Development

Understanding ServletConfig and ServletContext: Initialization Parameters, Data Sharing, Request Forwarding, Resource Access, and Client‑Side Caching in Java Web Applications

This article provides a comprehensive tutorial on using ServletConfig and ServletContext in Java web development, covering how to configure and retrieve servlet initialization parameters, share data between servlets, forward requests, read resource files, and set client‑side caching for servlet responses, with complete code examples.

BackendJavaServlet
0 likes · 21 min read
Understanding ServletConfig and ServletContext: Initialization Parameters, Data Sharing, Request Forwarding, Resource Access, and Client‑Side Caching in Java Web Applications
dbaplus Community
dbaplus Community
Mar 6, 2018 · Backend Development

Unlocking Tomcat: A Deep Dive into Java Application Server Architecture

This article explains the evolution of Java application servers, the inner workings of servlet containers, and provides a detailed walkthrough of Tomcat’s components, request handling flow, and key performance‑tuning considerations for modern backend development.

Application ServerJavaServlet
0 likes · 13 min read
Unlocking Tomcat: A Deep Dive into Java Application Server Architecture
Java Captain
Java Captain
Mar 4, 2018 · Backend Development

Implementing a Custom Spring MVC Framework in Java

This tutorial walks through building a lightweight Spring MVC clone in Java, covering the MVC workflow, nine core components, project setup, custom annotations, a DispatcherServlet implementation, and a test controller, with full source code and deployment instructions.

CustomFrameworkJavaMVC
0 likes · 16 min read
Implementing a Custom Spring MVC Framework in Java
Java Captain
Java Captain
Feb 8, 2018 · Backend Development

Implementing CAPTCHA Verification in Java with Servlet and HTML

This guide demonstrates how to create a CAPTCHA verification feature in Java by generating random characters and interference lines using Graphics, serving the image via a servlet, and integrating it into an HTML registration page with JavaScript for dynamic refresh.

GraphicsHTMLJava
0 likes · 12 min read
Implementing CAPTCHA Verification in Java with Servlet and HTML
dbaplus Community
dbaplus Community
Feb 7, 2018 · Backend Development

Unraveling Tomcat’s Core Architecture: From Server to Container

This article breaks down Tomcat’s modular architecture, explaining how a single Server contains multiple Services, each pairing Connectors and a Container, and details the inner workings of Connectors, Containers, and their pipeline‑Valve processing to help developers master Tomcat internals.

ConnectorContainerJava
0 likes · 12 min read
Unraveling Tomcat’s Core Architecture: From Server to Container
dbaplus Community
dbaplus Community
Jan 14, 2018 · Backend Development

Mastering Tomcat: Kernel Design, Clustering, and Performance Tuning

This article provides a comprehensive technical guide to Tomcat, covering its kernel implementation principles, server models, distributed clustering strategies, production deployment parameters, JVM tuning, request processing flow, servlet mechanisms, filter chains, Comet and WebSocket modes, as well as performance monitoring and optimization techniques.

BackendJVMJava
0 likes · 18 min read
Mastering Tomcat: Kernel Design, Clustering, and Performance Tuning
Java Captain
Java Captain
Dec 20, 2017 · Backend Development

Java Web Interview Experience and Essential Knowledge Checklist

The author recounts a recent Alibaba Java Web interview journey, reflects on gaps uncovered during the process, and compiles a comprehensive list of core Java Web concepts—including JVM internals, servlets, Spring, Hibernate, Struts, HTTP fundamentals, and design patterns—to guide future learning and preparation.

HibernateServletWeb Development
0 likes · 13 min read
Java Web Interview Experience and Essential Knowledge Checklist
Hujiang Technology
Hujiang Technology
Dec 14, 2017 · Backend Development

Deploying LanguageTool as a Java Servlet for Grammar Checking

This guide walks through cloning the LanguageTool repository, building it with Maven, extracting the required JARs, creating a servlet that uses JLanguageTool to check English text, handling language‑code issues by packaging META‑INF resources, and finally testing the service with curl.

GrammarCheckJavaLanguageTool
0 likes · 6 min read
Deploying LanguageTool as a Java Servlet for Grammar Checking
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Jun 2, 2017 · Backend Development

Essential Java Web Skills Every Backend Developer Must Master

This guide outlines the core knowledge areas for Java web development, covering JVM fundamentals, servlet lifecycle, major frameworks like Spring and Hibernate, HTTP essentials, and design patterns, offering a concise roadmap for aspiring backend engineers.

HibernateServletWeb Development
0 likes · 8 min read
Essential Java Web Skills Every Backend Developer Must Master
Qunar Tech Salon
Qunar Tech Salon
Dec 19, 2016 · Backend Development

Asynchronous Refactoring of an HTTP Service Using a Graph‑Based Execution Engine

This article describes how a Java‑based HTTP service was transformed from a synchronous, thread‑blocking design to a fully asynchronous architecture by evaluating coroutine, Actor model, and Rx approaches, and ultimately implementing a Graph‑Based Execution Engine integrated with Servlet 3.0 and Spring MVC to improve stability, performance, and throughput.

AsynchronousServletconcurrency
0 likes · 12 min read
Asynchronous Refactoring of an HTTP Service Using a Graph‑Based Execution Engine
Java Captain
Java Captain
Dec 8, 2016 · Backend Development

Introduction to Java Servlet Filters and Their Configuration

This article explains the concept, functions, development steps, configuration, lifecycle methods, and practical examples of Java Servlet Filters, showing how they intercept requests and responses, modify data, and integrate with web.xml, Spring, Hibernate, and Struts2 for backend web applications.

ConfigurationServletWeb Development
0 likes · 13 min read
Introduction to Java Servlet Filters and Their Configuration
Architecture Digest
Architecture Digest
Aug 28, 2016 · Backend Development

Understanding the Core Architecture of Apache Tomcat: Connectors, Containers, Services, and Lifecycle Management

This article provides a comprehensive overview of Apache Tomcat's modular architecture, detailing the roles and interactions of Connectors, Containers, Services, Servers, and the Lifecycle interface, while illustrating key implementation classes and code snippets that govern request handling and component management.

BackendConnectorContainer
0 likes · 17 min read
Understanding the Core Architecture of Apache Tomcat: Connectors, Containers, Services, and Lifecycle Management
ITPUB
ITPUB
Jul 11, 2016 · Backend Development

How to Fix Chinese Character Garbling in JSP, Servlets, and Java Web Apps

This guide explains five common scenarios where Chinese characters appear garbled in Java web applications—JSP pages, servlets, POST form submissions, URI parameters, and properties files—and provides step‑by‑step configurations such as setting pageEncoding, response content type, request character encoding, Tomcat URIEncoding, and using native2ascii.

JSPJavaServlet
0 likes · 5 min read
How to Fix Chinese Character Garbling in JSP, Servlets, and Java Web Apps
21CTO
21CTO
Feb 27, 2016 · Fundamentals

Why HTTP Matters: From a Simple Story to Real‑World Web Requests

This article explains the purpose and structure of the HTTP protocol, using a humorous story and Java code examples to illustrate request‑response mechanics, URL syntax, headers, and servlet interfaces, helping developers grasp how browsers and servers communicate over the web.

HTTPJavaRequest/Response
0 likes · 16 min read
Why HTTP Matters: From a Simple Story to Real‑World Web Requests
MaGe Linux Operations
MaGe Linux Operations
Mar 19, 2015 · Backend Development

How to Disable Tomcat TLD Scanning for Faster Startup

This guide explains why and how to turn off Tomcat's TLD scanning during startup, shows the necessary context.xml changes, addresses a Tomcat 6 pitfall with a custom JarScanner workaround, and notes that Tomcat 7 handles the setting correctly.

JavaServletTLD
0 likes · 4 min read
How to Disable Tomcat TLD Scanning for Faster Startup
Qunar Tech Salon
Qunar Tech Salon
Feb 20, 2015 · Backend Development

Overview of How Web Servers Work and the Role of Java Servlets

This article explains the fundamentals of web servers, application servers, and web containers, describes the Java Servlet API—including Servlet, ServletContext, ServletRequest, ServletResponse, and session handling—and provides guidance on thread safety with illustrative code examples.

Backend DevelopmentHTTPJava
0 likes · 11 min read
Overview of How Web Servers Work and the Role of Java Servlets
Qunar Tech Salon
Qunar Tech Salon
Feb 17, 2015 · Backend Development

Generating QR Codes in Java with QRGen and ZXing

This tutorial explains the basics of QR codes and provides step‑by‑step Java examples—including a Hello World program, URL encoding, image customization, and a servlet implementation—showing how to generate and serve QR codes using the ZXing and QRGen libraries.

Code ExampleJavaQR code
0 likes · 9 min read
Generating QR Codes in Java with QRGen and ZXing