[ 
https://issues.apache.org/jira/browse/WW-3476?focusedWorklogId=1046848&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-1046848
 ]

ASF GitHub Bot logged work on WW-3476:
--------------------------------------

                Author: ASF GitHub Bot
            Created on: 11/Oct/26 08:20
            Start Date: 11/Oct/26 08:20
    Worklog Time Spent: 10m 
      Work Description: lukaszlenart opened a new pull request, #351:
URL: https://github.com/apache/struts-site/pull/351

   Refers to [WW-3476](https://issues.apache.org/jira/browse/WW-3476) and 
apache/struts#2005 (merged, fix version 7.5.0)
   
   Documents the `<scoped-constant>` element added in 7.5.0, which lets a 
package override selected constants for its own actions. Packages that 
`extends` it inherit the override.
   
   - `core-developers/package-configuration.md`: a new "Scoped constants" 
section. It covers the element and its DTD, inheritance, the startup errors (a 
name nothing has declared scopable, or a duplicate name), and the lack of 
`${...}` substitution. A "Making a constant scopable" part is for component 
authors: register a `ScopableConstants` bean and read values through 
`ScopedConstantProvider`. It also covers which constants can never be scoped 
(`PrefixBasedActionMapper` handles per-URL mappers) and warns against making 
security switches scopable.
   - `core-developers/constant-configuration.md`: a link to the new section.
   - `plugins/plugins-architecture.md`: a `struts.scopedConstantProvider` row 
in the Extension Points table.
   - `dtds/struts-7.5.dtd`: copied from apache/struts `main`. Publishing it is 
the follow-up listed in apache/struts#2005.
   
   The section states that Struts core does not declare any constant as 
scopable yet, as of apache/struts#2005. If a scopable constant (UI theme, i18n, 
Convention result path) lands before 7.5.0, that warning needs updating.
   
   Verified with a local `jekyll build`: the new anchors resolve, both alerts 
render, and `_site/dtds/struts-7.5.dtd` is published.
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)




Issue Time Tracking
-------------------

    Worklog Id:     (was: 1046848)
    Time Spent: 2h 40m  (was: 2.5h)

> Allow overwriting of constants for each package
> -----------------------------------------------
>
>                 Key: WW-3476
>                 URL: https://issues.apache.org/jira/browse/WW-3476
>             Project: Struts 2
>          Issue Type: New Feature
>          Components: XML Configuration
>    Affects Versions: 2.2.1
>            Reporter: Johannes Geppert
>            Assignee: Lukasz Lenart
>            Priority: Major
>             Fix For: 7.5.0
>
>          Time Spent: 2h 40m
>  Remaining Estimate: 0h
>
> Allow to overwriting of constants for each package.
> So I can specify as example for each package an other ActionMapper, Local or 
> other location for the JSP Files.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to