6.7.4

Latest release in branch 6.7
Released 1 year ago (February 20, 2025)

Software Apache Struts
Branch 6.7
First official release version 6.7.0
First official release date 1 year ago (November 17, 2024)
Requirement Servlet API 3.1,
JSP API 2.1,
Java 8
Release notes https://github.com/apache/struts/releases/tag/STRUTS_6.7.4
Source code https://github.com/apache/struts/tree/STRUTS_6.7.4
Documentation https://javadoc.io/doc/org.apache.struts/struts2-core/6.7.4/index.html
Download https://mvnrepository.com/artifact/org.apache.struts/struts2-core/6.7.4
Apache Struts 6.7 Releases View full list

What Is New in Apache Struts 6.7

Struts 6.7 delivers key upgrades to its core dependencies and introduces new features for modern development. This release focuses on maintaining compatibility with the latest Java ecosystem while adding useful functionality.

Category Key Changes
New Features New struts.html5.date and struts.html5.localDateTime converters
Dependency Upgrades Log4j 2.23.1, Hibernate Validator 8.0.1.Final, JUnit 5.10.2
Improvements Enhanced Jakarta EE support, updated TLDs, and new plugin points
Bug Fixes Resolved issues with OGNL and configuration handling

How did the core dependencies get upgraded?

The framework's underlying libraries have been bumped to their latest stable versions. This ensures Struts 6.7 runs smoothly on modern JVMs and integrates well with other contemporary tools in your stack.

You now get Log4j 2.23.1 for logging, Hibernate Validator 8.0.1.Final for bean validation, and JUnit 5.10.2 for testing. In practice, this means better performance and access to the newest features from these critical dependencies without you having to manually override them.

What new converters were added for HTML5?

Two new type converters specifically for HTML5 input types are now available. This directly simplifies handling modern form data.

The struts.html5.date converter handles java.time.LocalDate objects from HTML5 type="date" inputs. Similarly, the struts.html5.localDateTime converter manages java.time.LocalDateTime objects from type="datetime-local" inputs. This matters because it removes the boilerplate code you'd normally write to parse these values yourself.

How was Jakarta EE support improved?

Support for Jakarta EE has been further refined and solidified in this release. The framework continues its complete transition from the old Java EE packages to the newer Jakarta EE namespace.

This includes updates to the Tag Library Descriptors (TLDs) and internal references. If you're deploying to a Jakarta EE 9+ server like Tomcat 10, this ensures full compatibility and prevents those pesky classpath conflicts.

FAQ

Do I need to change my code to use the new HTML5 converters?
No, they are automatically available. Just use type="date" or type="datetime-local" in your form inputs and Struts will automatically bind them to LocalDate or LocalDateTime properties on your action class.

Is Struts 6.7 compatible with Java 17?
Yes, absolutely. The dependency upgrades, particularly Hibernate Validator 8.0.1.Final, ensure full compatibility with Java 17 LTS.

What was the main reason for the Log4j upgrade?
The update to Log4j 2.23.1 incorporates the latest stable fixes and improvements from the Log4j project. It's a routine upgrade for maintenance and stability.

Are there any changes to the configuration files (struts.xml)?
No, your existing struts.xml configuration remains valid. This release adds new features but doesn't break backward compatibility for standard configurations.

Should I expect any breaking changes with the Hibernate Validator upgrade?
While moving from 6.x to 8.x is a major version jump, the API for basic bean validation remains consistent. You should review the Hibernate Validator release notes if you use advanced, custom constraints.

Releases In Branch 6.7

Version Release date
6.7.4 1 year ago
(February 20, 2025)
6.7.0 1 year ago
(November 17, 2024)