JSP & Struts Cheat Sheet
|
This content was generated with the assistance of AI and should be verified against the official documentation before being relied on in production. The reference material consulted while preparing these pages is listed in the section bibliography. |
A single-page, colour-coded summary of the JSP and Struts essentials, written against Jakarta Pages 4.0, Jakarta Expression Language 6.0, Jakarta Standard Tag Library 3.0,
Jakarta Servlet 6.1, Apache Tomcat 11.0.26, Apache Struts 7.4.0 and Java 21 (versions verified 2026-10-08) — Maven coordinates and the WAR layout, servlet essentials, JSP syntax and directives,
the Expression Language, the JSTL libraries and functions, custom tags, jsp-property-group and the Jasper parameters, the Struts request lifecycle and struts.xml, result types and the
defaultStack, OGNL, the ValueStack and @StrutsParameter, validation, i18n and type conversion, the Struts tags, themes, Convention, JSON, REST and file upload, a security strip, and a strip of
what changed since older tutorials — handy for quick memorization or as a downloadable PDF desk reference.
For the full explanation, every option, and additional examples, see the dedicated pages:
Start here — JSP & Struts.
Foundations — Introduction & History, Getting Started, and Servlet Fundamentals.
Part I: JSP, EL & JSTL — JSP, EL & JSTL.
Core JSP — JSP Lifecycle and Translation, Syntax, Comments & Escaping, Directives, Implicit Objects & Scopes, Scripting Elements (Legacy), Standard Actions & JavaBeans, Includes, Forwards & Page Composition, Error Handling, Character Encoding, JSP Documents (XML Syntax), and Configuration and Property Groups.
Expression Language — Expression Language Basics, EL Operators & Type Coercion, EL Lambdas, Collections & Streams, EL Static Access, Records & Optional, and EL Configuration & ELProcessor.
JSTL — JSTL Core, JSTL Iteration, JSTL URLs, Imports & Redirects, JSTL i18n & Messages, JSTL Formatting, JSTL Functions, and JSTL SQL & XML (Legacy).
Custom tags — Custom Tags: SimpleTag, Custom Tags: Classic Handlers, Tag Library Descriptors & EL Functions, and Tag Files & Layouts.
Building applications — MVC with Servlets & JSP, Forms, Validation & Sessions, Spring MVC with JSP, Security, Jasper Configuration & Precompilation, and Testing and Debugging JSP Applications.
Part II: Apache Struts — Apache Struts.
Foundations — Architecture & Request Lifecycle, Struts Getting Started, Configuration: struts.xml & Constants, Packages and Namespaces, Actions, Wildcard Mappings & Method Invocation, Results & Result Types, Exception Handling and Global Results, Interceptors, and Custom Interceptors.
Data, parameters and validation — ValueStack, ActionContext & OGNL, Parameter Injection and @StrutsParameter, Type Conversion, Validation, Bean Validation Plugin, Localization and i18n, ModelDriven, Preparable & CRUD, Action Chaining, Sessions & Scopes, File Upload and Download, and Double-Submit Tokens & Wait Pages.
Tags and views — Tags Overview & Generic Tags, UI & Form Tags, Themes & Templates, FreeMarker & Velocity Views, and Tiles & Page Layouts.
Integrations and plugins — Convention Plugin & Annotations, Spring Integration, Dependency Injection and CDI, JSON Plugin & AJAX, REST Plugin, and Other Plugins.
Quality and operations — Testing, Debugging, Dev Mode & Logging, Security Hardening, Security Headers: CSP, COOP, COEP & Fetch Metadata, Security Bulletins, Struts 1 (Classic) & Migration, and Deployment & Production.
Migration — What’s Changed & Migration.
References
The PDF summarizes the official documentation; each source is cited in full on the page listed above that covers it, and in the section bibliography.