This is an automated email from the ASF dual-hosted git repository.
asf-gitbox-commits pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/struts-site.git
The following commit(s) were added to refs/heads/asf-site by this push:
new 64a580df7d Automatic Site Publish by Buildbot
64a580df7d is described below
commit 64a580df7dec8daf74e92b00ccc3420be7ce6e6b
Author: buildbot <[email protected]>
AuthorDate: Tue Oct 6 12:43:59 2026 +0000
Automatic Site Publish by Buildbot
---
output/plugins/bean-validation/index.html | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/output/plugins/bean-validation/index.html
b/output/plugins/bean-validation/index.html
index 177b58e4eb..d116c0f17e 100644
--- a/output/plugins/bean-validation/index.html
+++ b/output/plugins/bean-validation/index.html
@@ -242,8 +242,16 @@ in your stack (or by removing them from your stack).</p>
<p>Here is an example Action that makes use of bean validation. Note that some
of the validation annotations are taken
from <code class="language-plaintext highlighter-rouge">javax</code> package
(which is defined in the JSR) while others are taken from the validaton
provider (in this
-case: <code class="language-plaintext highlighter-rouge">hibernate</code>).
You can specifiy own text keys in the <code class="language-plaintext
highlighter-rouge">message</code> attribute of the annotations. If you do that
the
-whole struts i18n mechanism kicks in to resolve those text keys.</p>
+case: <code class="language-plaintext highlighter-rouge">hibernate</code>).
You can specify your own text keys in the <code class="language-plaintext
highlighter-rouge">message</code> attribute of the annotations. The plugin
+looks up the <code class="language-plaintext highlighter-rouge">message</code>
value as a Struts text key, and when the key is found the whole Struts i18n
mechanism kicks in
+to resolve it. When no key matches, or <code class="language-plaintext
highlighter-rouge">message</code> keeps the provider’s default (like
+<code class="language-plaintext
highlighter-rouge">{jakarta.validation.constraints.NotNull.message}</code>),
the message produced by the validation provider is shown
+literally, exactly as the provider interpolated it.</p>
+
+<p class="alert alert-info">Since Struts 7.5.0 and 6.13.0 the plugin looks up
the <code class="language-plaintext highlighter-rouge">message</code> value
itself and shows a provider-produced message
+literally (<a
href="https://issues.apache.org/jira/browse/WW-5757">WW-5757</a>). Earlier
versions used the message after the
+provider had interpolated it as the text key, and processed it again as a
Struts message when no key matched.
+<code class="language-plaintext
highlighter-rouge">struts.beanValidation.convertMessageToUtf</code> now applies
only to messages resolved from Struts bundles.</p>
<p><strong>com.example.actions.BeanValidationAction</strong></p>