You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by lu...@apache.org on 2026/07/18 06:13:18 UTC

(struts) 17/18: WW-5653 fix(showcase): drop obsolete css/js excludePattern so webjar JS is served

This is an automated email from the ASF dual-hosted git repository.

lukaszlenart pushed a commit to branch WW-5653-bootstrap5-sample-apps
in repository https://gitbox.apache.org/repos/asf/struts.git

commit 9d1209f36cf0c769cb6c67c3ce4c8188d780e922
Author: Lukasz Lenart <lu...@apache.org>
AuthorDate: Sat Jul 18 08:04:48 2026 +0200

    WW-5653 fix(showcase): drop obsolete css/js excludePattern so webjar JS is served
    
    The old struts.action.excludePattern whitelisted the vendored /styles/*.css
    and /js/*.js layout for container serving. After moving Bootstrap/jQuery to
    webjars under /static/webjars/**, the '.*/js/.*\.js' entry matched the webjar
    JS path (e.g. bootstrap.bundle.min.js) and excluded it from Struts' static
    handler, so it fell through to the container and 404'd. Remaining webapp assets
    (prettify.js, main.css) are served via default-servlet fall-through.
    
    Co-Authored-By: Claude Opus 4.8 <no...@anthropic.com>
---
 apps/showcase/src/main/resources/struts.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/apps/showcase/src/main/resources/struts.xml b/apps/showcase/src/main/resources/struts.xml
index 11995ae2b..ecf2b44fd 100644
--- a/apps/showcase/src/main/resources/struts.xml
+++ b/apps/showcase/src/main/resources/struts.xml
@@ -54,7 +54,7 @@
     <constant name="struts.serve.static.browserCache" value="false"/>
 
     <constant name="struts.action.excludePattern"
-              value=".*/images/.*\.gif,.*/img/.*\.gif,.*/styles/.*\.css,.*/js/.*\.js,/testServlet/.*"/>
+              value=".*/images/.*\.gif,.*/img/.*\.gif,/testServlet/.*"/>
 
     <include file="struts-interactive.xml"/>