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

lukaszlenart pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/struts-intellij-plugin.git


The following commit(s) were added to refs/heads/main by this push:
     new 7b85545  Support Struts 6.5 and 7.5 configuration grammar (#148)
7b85545 is described below

commit 7b8554581e353079ded6cfc7d66b5c66642ccae9
Author: Lukasz Lenart <[email protected]>
AuthorDate: Thu Nov 12 09:02:25 2026 +0100

    Support Struts 6.5 and 7.5 configuration grammar (#148)
    
    * docs: specify Struts 6.5 and 7.5 configuration grammar
    
    Record the agreed DTD, DOM, and file-template design for issue 147 so the 
editor can accept the published 7.5 struts.xml syntax.
    
    Co-authored-by: Cursor <[email protected]>
    
    * docs: plan Struts 6.5 and 7.5 configuration grammar
    
    Mark the spec approved and add the task-by-task implementation plan for 
issue 147.
    
    Co-authored-by: Cursor <[email protected]>
    
    * feat: register Struts 6.5 and 7.5 configuration DTDs
    
    Accept the published 6.5 and 7.5 DOCTYPEs from the bundled catalog copies.
    
    Co-authored-by: Cursor <[email protected]>
    
    * feat: select the Struts 6.5 and 7.5 struts.xml templates
    
    Use the detected struts2-core version so 6.5 and 7.5 modules get the 
matching DOCTYPE.
    
    Co-authored-by: Cursor <[email protected]>
    
    * fix: add Apache license header to StrutsFileTemplateProviderTest
    
    Co-authored-by: Cursor <[email protected]>
    
    * fix: include Maven 6.0.0 in the Struts 6.0 template range
    
    Co-authored-by: Cursor <[email protected]>
    
    * feat: highlight a package that extends a final package
    
    Struts rejects that parent at startup, so the extends value is marked in 
the editor.
    
    Co-authored-by: Cursor <[email protected]>
    
    * feat: complete and check package scoped constants
    
    Only the built-in scopable names resolve, and their values reuse the 
constant value converter.
    
    Co-authored-by: Cursor <[email protected]>
    
    * feat: complete and check action http-method
    
    Accept the nine HTTP methods in any case and highlight any other token.
    
    Co-authored-by: Cursor <[email protected]>
    
    * feat: check package and action extension tokens
    
    Highlight an extension that starts with a dot, contains a slash, or 
contains whitespace.
    
    Co-authored-by: Cursor <[email protected]>
    
    * docs: note Struts 6.5 and 7.5 configuration grammar
    
    Co-authored-by: Cursor <[email protected]>
    
    ---------
    
    Co-authored-by: Cursor <[email protected]>
---
 CHANGELOG.md                                       |    4 +
 .../2026-11-11-struts-7-5-configuration-grammar.md | 1030 ++++++++++++++++++++
 ...1-11-struts-7-5-configuration-grammar-design.md |  195 ++++
 .../intellij/struts2/Struts2ResourceProvider.java  |    8 +
 .../java/com/intellij/struts2/StrutsConstants.java |   14 +-
 .../StrutsFileTemplateGroupDescriptorFactory.java  |    8 +
 .../struts2/StrutsFileTemplateProvider.java        |   46 +-
 .../inspection/Struts2ModelInspectionVisitor.java  |   14 +
 .../intellij/struts2/dom/struts/action/Action.java |    8 +
 .../dom/struts/action/HttpMethodConverter.java     |   67 ++
 .../constant/ConstantValueConverterImpl.java       |   15 +-
 .../strutspackage/ExtensionListConverter.java      |   78 ++
 .../dom/struts/strutspackage/ScopedConstant.java   |   44 +
 .../strutspackage/ScopedConstantNameConverter.java |   64 ++
 .../dom/struts/strutspackage/StrutsPackage.java    |    9 +
 .../resources/fileTemplates/j2ee/struts_6_5.xml.ft |    8 +
 .../fileTemplates/j2ee/struts_6_5.xml.html         |    7 +
 .../resources/fileTemplates/j2ee/struts_7_5.xml.ft |    8 +
 .../fileTemplates/j2ee/struts_7_5.xml.html         |    7 +
 .../resources/messages/Struts2Bundle.properties    |    1 +
 src/main/resources/resources/dtds/struts-6.5.dtd   |  158 +++
 src/main/resources/resources/dtds/struts-7.5.dtd   |  167 ++++
 .../struts2/StrutsFileTemplateProviderTest.java    |   62 ++
 .../dom/inspection/StrutsDtdValidatorTest.java     |   48 +
 .../struts2/dom/struts/StrutsCompletionTest.java   |   17 +-
 .../struts2/dom/struts/StrutsHighlightingTest.java |   18 +-
 .../struts-completionvariants-http-method.xml      |   31 +
 ...uts-completionvariants-scoped-constant-name.xml |   31 +
 ...pletionvariants-scoped-constant-theme-value.xml |   31 +
 .../strutsXml/highlighting/struts-extension.xml    |   31 +
 .../strutsXml/highlighting/struts-http-method.xml  |   31 +
 .../highlighting/struts-package-final.xml          |   32 +
 .../highlighting/struts-scoped-constant.xml        |   32 +
 33 files changed, 2301 insertions(+), 23 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 4ed2d0b..d6b7f8e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,10 @@
 
 ## [Unreleased]
 
+### Added
+
+- Support the published Struts 6.5 and 7.5 configuration DTDs, including 
`<package final>` and `extension`, `<scoped-constant>`, and `<action 
http-method>` 
([#147](https://github.com/apache/struts-intellij-plugin/issues/147))
+
 ## [262.19039.1] - 2026-08-01
 
 ### Changed
diff --git 
a/docs/superpowers/plans/2026-11-11-struts-7-5-configuration-grammar.md 
b/docs/superpowers/plans/2026-11-11-struts-7-5-configuration-grammar.md
new file mode 100644
index 0000000..19b026d
--- /dev/null
+++ b/docs/superpowers/plans/2026-11-11-struts-7-5-configuration-grammar.md
@@ -0,0 +1,1030 @@
+# Struts 6.5 and 7.5 Configuration Grammar Implementation Plan
+
+> **For agentic workers:** REQUIRED SUB-SKILL: Use 
superpowers:subagent-driven-development (recommended) or 
superpowers:executing-plans to implement this plan task-by-task. Steps use 
checkbox (`- [ ]`) syntax for tracking.
+
+**Goal:** Make the editor accept and assist the published Struts 6.5 and 7.5 
`struts.xml` grammar.
+
+**Architecture:** Copy the two published DTDs into the plugin and register 
them the same way as `struts-6.0.dtd`. Extend the existing DOM interfaces with 
`final`, `extension`, `<scoped-constant>`, and `http-method`, and check those 
values with converters plus one package-visitor rule. Pick the new-file 
template from the detected `struts2-core` version with an inclusive comparison.
+
+**Tech Stack:** Java, IntelliJ Platform DOM (`com.intellij.util.xml`), JUnit 
3-style plugin tests, Gradle (`./gradlew test -x rat`).
+
+## Global Constraints
+
+- Copy `struts-6.5.dtd` and `struts-7.5.dtd` from 
https://struts.apache.org/dtds/ unchanged.
+- System URIs are `https://struts.apache.org/dtds/struts-6.5.dtd` and 
`https://struts.apache.org/dtds/struts-7.5.dtd`.
+- Public IDs are `-//Apache Software Foundation//DTD Struts Configuration 
6.5//EN` and `-//Apache Software Foundation//DTD Struts Configuration 7.5//EN`.
+- One DOM model serves every DTD version. Completion is not switched per DTD 
version.
+- Scoped-constant names are only `struts.ui.theme`, `struts.ui.templateDir`, 
and `struts.convention.result.path` when that constant is already registered 
for the module.
+- `http-method` tokens are `GET`, `HEAD`, `POST`, `PUT`, `DELETE`, `TRACE`, 
`OPTIONS`, `CONNECT`, `PATCH`, matched ignoring case.
+- An extension token is illegal when it starts with `.`, contains `/`, or 
contains whitespace. An empty token is valid. Do not trim.
+- Versions at least 7.5 use the 7.5 template. Versions at least 6.5 and below 
7.0 use the 6.5 template. 6.0 through 6.4 and 7.0.0 through 7.4.x keep the 6.0 
template.
+- Do not rewrite an existing file's DOCTYPE.
+- Do not scan `ScopableConstants` beans, and do not change OGNL, 
`@StrutsParameter`, tag libraries, validators, or Struts 1 / Tiles / XWork DTDs.
+- Implement on the current branch `docs/struts-7-5-configuration-grammar`, 
which already contains the spec.
+- Every new Java file starts with the Apache license header from 
`src/main/java/com/intellij/struts2/inspection/StrutsParameterAnnotationUtil.java`
 (Copyright 2026).
+- Every new test-data XML file starts with the license comment from 
`src/test/testData/strutsXml/highlighting/struts-action-allowedMethods.xml`.
+
+---
+
+## File structure
+
+- `src/main/resources/resources/dtds/struts-6.5.dtd` — published 6.5 DTD, 
unmodified.
+- `src/main/resources/resources/dtds/struts-7.5.dtd` — published 7.5 DTD, 
unmodified.
+- `src/main/java/com/intellij/struts2/StrutsConstants.java` — URI and 
public-ID constants, plus `STRUTS_DTDS`.
+- `src/main/java/com/intellij/struts2/Struts2ResourceProvider.java` — maps 
those IDs to the bundled files.
+- `src/main/java/com/intellij/struts2/StrutsFileTemplateProvider.java` — 
`templateNameFor` and the version cascade.
+- 
`src/main/java/com/intellij/struts2/StrutsFileTemplateGroupDescriptorFactory.java`
 — template descriptor names.
+- `src/main/resources/fileTemplates/j2ee/struts_6_5.xml.ft` and 
`struts_7_5.xml.ft` — empty `<struts>` documents.
+- `src/main/resources/fileTemplates/j2ee/struts_6_5.xml.html` and 
`struts_7_5.xml.html` — template descriptions.
+- 
`src/main/java/com/intellij/struts2/dom/struts/strutspackage/StrutsPackage.java`
 — `final`, `extension`, `<scoped-constant>`.
+- `src/main/java/com/intellij/struts2/dom/struts/action/Action.java` — 
`http-method`, `extension`.
+- 
`src/main/java/com/intellij/struts2/dom/struts/strutspackage/ScopedConstant.java`
 — name and value element.
+- 
`src/main/java/com/intellij/struts2/dom/struts/strutspackage/ScopedConstantNameConverter.java`
 — scopable names.
+- 
`src/main/java/com/intellij/struts2/dom/struts/constant/ConstantValueConverterImpl.java`
 — value completion for `<constant>` and `<scoped-constant>`.
+- 
`src/main/java/com/intellij/struts2/dom/struts/action/HttpMethodConverter.java` 
— comma-separated HTTP methods.
+- 
`src/main/java/com/intellij/struts2/dom/struts/strutspackage/ExtensionListConverter.java`
 — comma-separated extensions, used by package and action.
+- 
`src/main/java/com/intellij/struts2/dom/inspection/Struts2ModelInspectionVisitor.java`
 — final parent.
+- `src/main/resources/messages/Struts2Bundle.properties` — final-parent 
message.
+- `CHANGELOG.md` — unreleased note.
+- Tests under `src/test/java/com/intellij/struts2/` and 
`src/test/testData/strutsXml/`.
+
+`StrutsPackageImpl` and `ActionImpl` stay unchanged. They are abstract, and 
the DOM framework supplies the new getters.
+
+### Task 1: Register the 6.5 and 7.5 DTDs
+
+**Files:**
+- Create: `src/main/resources/resources/dtds/struts-6.5.dtd`
+- Create: `src/main/resources/resources/dtds/struts-7.5.dtd`
+- Modify: `src/main/java/com/intellij/struts2/StrutsConstants.java`
+- Modify: `src/main/java/com/intellij/struts2/Struts2ResourceProvider.java`
+- Test: 
`src/test/java/com/intellij/struts2/dom/inspection/StrutsDtdValidatorTest.java`
+
+**Interfaces:**
+- Consumes: `StrutsDtdValidator.validate` and `StrutsConstants.STRUTS_DTDS`.
+- Produces: `StrutsConstants.STRUTS_6_5_DTD_URI`, `STRUTS_6_5_DTD_ID`, 
`STRUTS_7_5_DTD_URI`, `STRUTS_7_5_DTD_ID`, both present in `STRUTS_DTDS`.
+
+- [ ] **Step 1: Write the failing tests**
+
+Add these methods to `StrutsDtdValidatorTest`:
+
+```java
+public void testValidStruts65HttpsDtdReturnsOk() {
+    XmlFile file = (XmlFile) myFixture.configureByText("struts.xml",
+            """
+            <?xml version="1.0" encoding="UTF-8" ?>
+            <!DOCTYPE struts PUBLIC
+              "-//Apache Software Foundation//DTD Struts Configuration 6.5//EN"
+              "https://struts.apache.org/dtds/struts-6.5.dtd";>
+            <struts/>
+            """);
+    assertEquals(StrutsDtdValidator.Result.OK, 
StrutsDtdValidator.validate(file));
+}
+
+public void testValidStruts75HttpsDtdReturnsOk() {
+    XmlFile file = (XmlFile) myFixture.configureByText("struts.xml",
+            """
+            <?xml version="1.0" encoding="UTF-8" ?>
+            <!DOCTYPE struts PUBLIC
+              "-//Apache Software Foundation//DTD Struts Configuration 7.5//EN"
+              "https://struts.apache.org/dtds/struts-7.5.dtd";>
+            <struts/>
+            """);
+    assertEquals(StrutsDtdValidator.Result.OK, 
StrutsDtdValidator.validate(file));
+}
+
+public void testHttpInsteadOfHttpsForStruts65ReturnsWarning() {
+    XmlFile file = (XmlFile) myFixture.configureByText("struts.xml",
+            """
+            <?xml version="1.0" encoding="UTF-8" ?>
+            <!DOCTYPE struts PUBLIC
+              "-//Apache Software Foundation//DTD Struts Configuration 6.5//EN"
+              "http://struts.apache.org/dtds/struts-6.5.dtd";>
+            <struts/>
+            """);
+    assertEquals(StrutsDtdValidator.Result.HTTP_INSTEAD_OF_HTTPS, 
StrutsDtdValidator.validate(file));
+}
+
+public void testHttpInsteadOfHttpsForStruts75ReturnsWarning() {
+    XmlFile file = (XmlFile) myFixture.configureByText("struts.xml",
+            """
+            <?xml version="1.0" encoding="UTF-8" ?>
+            <!DOCTYPE struts PUBLIC
+              "-//Apache Software Foundation//DTD Struts Configuration 7.5//EN"
+              "http://struts.apache.org/dtds/struts-7.5.dtd";>
+            <struts/>
+            """);
+    assertEquals(StrutsDtdValidator.Result.HTTP_INSTEAD_OF_HTTPS, 
StrutsDtdValidator.validate(file));
+}
+```
+
+- [ ] **Step 2: Run the tests to verify they fail**
+
+Run: `./gradlew test -x rat --tests "StrutsDtdValidatorTest" 
--no-configuration-cache`
+
+Expected: FAIL. `testValidStruts65HttpsDtdReturnsOk` and 
`testValidStruts75HttpsDtdReturnsOk` expect `OK` and get `UNRECOGNIZED`.
+
+- [ ] **Step 3: Bundle and register the DTDs**
+
+Download the published files:
+
+```bash
+curl -fsSL -o src/main/resources/resources/dtds/struts-6.5.dtd 
https://struts.apache.org/dtds/struts-6.5.dtd
+curl -fsSL -o src/main/resources/resources/dtds/struts-7.5.dtd 
https://struts.apache.org/dtds/struts-7.5.dtd
+```
+
+Confirm the public IDs are present and the files were not edited:
+
+```bash
+rg "DTD Struts Configuration" src/main/resources/resources/dtds/struts-6.5.dtd 
src/main/resources/resources/dtds/struts-7.5.dtd
+```
+
+Expected: the 6.5 file contains `DTD Struts Configuration 6.5` and the 7.5 
file contains `DTD Struts Configuration 7.5`.
+
+In `StrutsConstants`, after the `STRUTS_6_0_DTD_ID` field, add:
+
+```java
+@NonNls
+public static final String STRUTS_6_5_DTD_URI = 
"https://struts.apache.org/dtds/struts-6.5.dtd";;
+@NonNls
+public static final String STRUTS_6_5_DTD_ID = "-//Apache Software 
Foundation//DTD Struts Configuration 6.5//EN";
+
+@NonNls
+public static final String STRUTS_7_5_DTD_URI = 
"https://struts.apache.org/dtds/struts-7.5.dtd";;
+@NonNls
+public static final String STRUTS_7_5_DTD_ID = "-//Apache Software 
Foundation//DTD Struts Configuration 7.5//EN";
+```
+
+Append both URI and ID pairs to `STRUTS_DTDS`, after the 6.0 pair:
+
+```java
+STRUTS_6_0_DTD_URI, STRUTS_6_0_DTD_ID,
+STRUTS_6_5_DTD_URI, STRUTS_6_5_DTD_ID,
+STRUTS_7_5_DTD_URI, STRUTS_7_5_DTD_ID
+```
+
+In `Struts2ResourceProvider.registerResources`, after the 6.0 `addDTDResource` 
call, add:
+
+```java
+addDTDResource(StrutsConstants.STRUTS_6_5_DTD_URI,
+        StrutsConstants.STRUTS_6_5_DTD_ID,
+        "struts-6.5.dtd", registrar);
+
+addDTDResource(StrutsConstants.STRUTS_7_5_DTD_URI,
+        StrutsConstants.STRUTS_7_5_DTD_ID,
+        "struts-7.5.dtd", registrar);
+```
+
+- [ ] **Step 4: Run the tests to verify they pass**
+
+Run: `./gradlew test -x rat --tests "StrutsDtdValidatorTest" 
--no-configuration-cache`
+
+Expected: PASS.
+
+- [ ] **Step 5: Commit**
+
+```bash
+git add src/main/resources/resources/dtds/struts-6.5.dtd \
+  src/main/resources/resources/dtds/struts-7.5.dtd \
+  src/main/java/com/intellij/struts2/StrutsConstants.java \
+  src/main/java/com/intellij/struts2/Struts2ResourceProvider.java \
+  src/test/java/com/intellij/struts2/dom/inspection/StrutsDtdValidatorTest.java
+git commit -m "$(cat <<'EOF'
+feat: register Struts 6.5 and 7.5 configuration DTDs
+
+Accept the published 6.5 and 7.5 DOCTYPEs from the bundled catalog copies.
+
+EOF
+)"
+```
+
+### Task 2: Select the 6.5 and 7.5 file templates
+
+**Files:**
+- Create: `src/main/resources/fileTemplates/j2ee/struts_6_5.xml.ft`
+- Create: `src/main/resources/fileTemplates/j2ee/struts_6_5.xml.html`
+- Create: `src/main/resources/fileTemplates/j2ee/struts_7_5.xml.ft`
+- Create: `src/main/resources/fileTemplates/j2ee/struts_7_5.xml.html`
+- Modify: 
`src/main/java/com/intellij/struts2/StrutsFileTemplateGroupDescriptorFactory.java`
+- Modify: `src/main/java/com/intellij/struts2/StrutsFileTemplateProvider.java`
+- Test: 
`src/test/java/com/intellij/struts2/StrutsFileTemplateProviderTest.java`
+
+**Interfaces:**
+- Consumes: nothing from Task 1.
+- Produces: `StrutsFileTemplateProvider.templateNameFor(@Nullable String 
version)` returning the descriptor name. 
`StrutsFileTemplateGroupDescriptorFactory.STRUTS_6_5_XML` is 
`"struts_6_5.xml"`. `STRUTS_7_5_XML` is `"struts_7_5.xml"`.
+
+- [ ] **Step 1: Write the failing test**
+
+Create 
`src/test/java/com/intellij/struts2/StrutsFileTemplateProviderTest.java`. This 
test does not start a fixture. It calls the mapping directly and reads the 
template resources.
+
+```java
+package com.intellij.struts2;
+
+import junit.framework.TestCase;
+
+import java.io.InputStream;
+import java.nio.charset.StandardCharsets;
+
+public class StrutsFileTemplateProviderTest extends TestCase {
+
+  public void testVersionMapping() {
+    assertEquals(StrutsFileTemplateGroupDescriptorFactory.STRUTS_6_0_XML,
+                 StrutsFileTemplateProvider.templateNameFor("6.4.0"));
+    assertEquals(StrutsFileTemplateGroupDescriptorFactory.STRUTS_6_0_XML,
+                 StrutsFileTemplateProvider.templateNameFor("7.4.0"));
+    assertEquals(StrutsFileTemplateGroupDescriptorFactory.STRUTS_6_5_XML,
+                 StrutsFileTemplateProvider.templateNameFor("6.5.0"));
+    assertEquals(StrutsFileTemplateGroupDescriptorFactory.STRUTS_6_5_XML,
+                 StrutsFileTemplateProvider.templateNameFor("6.6.0"));
+    assertEquals(StrutsFileTemplateGroupDescriptorFactory.STRUTS_7_5_XML,
+                 StrutsFileTemplateProvider.templateNameFor("7.5.0"));
+    assertEquals(StrutsFileTemplateGroupDescriptorFactory.STRUTS_7_5_XML,
+                 StrutsFileTemplateProvider.templateNameFor("7.6.0"));
+    assertEquals(StrutsFileTemplateGroupDescriptorFactory.STRUTS_7_5_XML,
+                 StrutsFileTemplateProvider.templateNameFor("8.0.0"));
+    assertEquals(StrutsFileTemplateGroupDescriptorFactory.STRUTS_2_0_XML,
+                 StrutsFileTemplateProvider.templateNameFor(null));
+  }
+
+  public void testTemplateDoctypes() throws Exception {
+    String struts65 = readTemplate("struts_6_5.xml.ft");
+    assertTrue(struts65.contains("-//Apache Software Foundation//DTD Struts 
Configuration 6.5//EN"));
+    
assertTrue(struts65.contains("https://struts.apache.org/dtds/struts-6.5.dtd";));
+
+    String struts75 = readTemplate("struts_7_5.xml.ft");
+    assertTrue(struts75.contains("-//Apache Software Foundation//DTD Struts 
Configuration 7.5//EN"));
+    
assertTrue(struts75.contains("https://struts.apache.org/dtds/struts-7.5.dtd";));
+  }
+
+  private static String readTemplate(String fileName) throws Exception {
+    try (InputStream in = StrutsFileTemplateProvider.class.getClassLoader()
+            .getResourceAsStream("fileTemplates/j2ee/" + fileName)) {
+      assertNotNull(fileName, in);
+      return new String(in.readAllBytes(), StandardCharsets.UTF_8);
+    }
+  }
+}
+```
+
+- [ ] **Step 2: Run the test to verify it fails**
+
+Run: `./gradlew test -x rat --tests "StrutsFileTemplateProviderTest" 
--no-configuration-cache`
+
+Expected: FAIL to compile. `templateNameFor`, `STRUTS_6_5_XML`, and 
`STRUTS_7_5_XML` do not exist.
+
+- [ ] **Step 3: Add the templates and the version mapping**
+
+`src/main/resources/fileTemplates/j2ee/struts_6_5.xml.ft`:
+
+```xml
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!DOCTYPE struts PUBLIC
+  "-//Apache Software Foundation//DTD Struts Configuration 6.5//EN"
+  "https://struts.apache.org/dtds/struts-6.5.dtd";>
+
+<struts>
+</struts>
+```
+
+`src/main/resources/fileTemplates/j2ee/struts_7_5.xml.ft`:
+
+```xml
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!DOCTYPE struts PUBLIC
+  "-//Apache Software Foundation//DTD Struts Configuration 7.5//EN"
+  "https://struts.apache.org/dtds/struts-7.5.dtd";>
+
+<struts>
+</struts>
+```
+
+`struts_6_5.xml.html`:
+
+```html
+<html>
+<body style="padding: 2px;">
+<span style="font-family: verdana,sans-serif; font-size: smaller;">
+This is a built-in template used each time you create a new struts.xml for 
Struts 6.5.x
+</span>
+</body>
+</html>
+```
+
+`struts_7_5.xml.html`:
+
+```html
+<html>
+<body style="padding: 2px;">
+<span style="font-family: verdana,sans-serif; font-size: smaller;">
+This is a built-in template used each time you create a new struts.xml for 
Struts 7.5 and newer
+</span>
+</body>
+</html>
+```
+
+In `StrutsFileTemplateGroupDescriptorFactory`, after `STRUTS_6_0_XML`, add:
+
+```java
+public static final String STRUTS_6_5_XML = "struts_6_5.xml";
+
+public static final String STRUTS_7_5_XML = "struts_7_5.xml";
+```
+
+In `getFileTemplatesDescriptor`, after the `STRUTS_6_0_XML` descriptor, add:
+
+```java
+group.addTemplate(new FileTemplateDescriptor(STRUTS_6_5_XML,
+                                             StrutsIcons.STRUTS_CONFIG_FILE));
+group.addTemplate(new FileTemplateDescriptor(STRUTS_7_5_XML,
+                                             StrutsIcons.STRUTS_CONFIG_FILE));
+```
+
+Replace `determineFileTemplate` so it loads `templateNameFor(myVersionName)`. 
Keep `is21orNewer`, `is25orNewer`, and the version fields. Add this 
package-visible method. A null version returns the 2.0 template name 
`struts.xml`, which is today's fall-through when every `isNewerThan` check is 
false.
+
+```java
+@NotNull
+static String templateNameFor(@Nullable String version) {
+  if (version == null) {
+    return StrutsFileTemplateGroupDescriptorFactory.STRUTS_2_0_XML;
+  }
+  if (VersionComparatorUtil.compare(version, "7.5") >= 0) {
+    return StrutsFileTemplateGroupDescriptorFactory.STRUTS_7_5_XML;
+  }
+  if (VersionComparatorUtil.compare(version, "6.5") >= 0
+      && VersionComparatorUtil.compare(version, "7.0") < 0) {
+    return StrutsFileTemplateGroupDescriptorFactory.STRUTS_6_5_XML;
+  }
+  if (VersionComparatorUtil.compare(version, "6.0") > 0) {
+    return StrutsFileTemplateGroupDescriptorFactory.STRUTS_6_0_XML;
+  }
+  if (VersionComparatorUtil.compare(version, "2.5") > 0) {
+    return StrutsFileTemplateGroupDescriptorFactory.STRUTS_2_5_XML;
+  }
+  if (VersionComparatorUtil.compare(version, "2.3") > 0) {
+    return StrutsFileTemplateGroupDescriptorFactory.STRUTS_2_3_XML;
+  }
+  if (VersionComparatorUtil.compare(version, "2.1") > 0) {
+    return VersionComparatorUtil.compare(version, "2.1.7") > 0
+           ? StrutsFileTemplateGroupDescriptorFactory.STRUTS_2_1_7_XML
+           : StrutsFileTemplateGroupDescriptorFactory.STRUTS_2_1_XML;
+  }
+  return StrutsFileTemplateGroupDescriptorFactory.STRUTS_2_0_XML;
+}
+```
+
+`determineFileTemplate` becomes:
+
+```java
+@NotNull
+public FileTemplate determineFileTemplate(Project project) {
+  final FileTemplateManager fileTemplateManager = 
FileTemplateManager.getInstance(project);
+  return fileTemplateManager.getJ2eeTemplate(templateNameFor(myVersionName));
+}
+```
+
+The comparisons against `"7.5"` and `"6.5"` are `>=` so Maven versions `7.5.0` 
and `6.5.0` match. The existing `"6.0"` check stays a strict `>`.
+
+- [ ] **Step 4: Run the test to verify it passes**
+
+Run: `./gradlew test -x rat --tests "StrutsFileTemplateProviderTest" 
--no-configuration-cache`
+
+Expected: PASS.
+
+- [ ] **Step 5: Commit**
+
+```bash
+git add src/main/java/com/intellij/struts2/StrutsFileTemplateProvider.java \
+  
src/main/java/com/intellij/struts2/StrutsFileTemplateGroupDescriptorFactory.java
 \
+  src/main/resources/fileTemplates/j2ee/struts_6_5.xml.ft \
+  src/main/resources/fileTemplates/j2ee/struts_6_5.xml.html \
+  src/main/resources/fileTemplates/j2ee/struts_7_5.xml.ft \
+  src/main/resources/fileTemplates/j2ee/struts_7_5.xml.html \
+  src/test/java/com/intellij/struts2/StrutsFileTemplateProviderTest.java
+git commit -m "$(cat <<'EOF'
+feat: select the Struts 6.5 and 7.5 struts.xml templates
+
+Use the detected struts2-core version so 6.5 and 7.5 modules get the matching 
DOCTYPE.
+
+EOF
+)"
+```
+
+### Task 3: Highlight a package that extends a final package
+
+**Files:**
+- Modify: 
`src/main/java/com/intellij/struts2/dom/struts/strutspackage/StrutsPackage.java`
+- Modify: 
`src/main/java/com/intellij/struts2/dom/inspection/Struts2ModelInspectionVisitor.java`
+- Modify: `src/main/resources/messages/Struts2Bundle.properties`
+- Create: `src/test/testData/strutsXml/highlighting/struts-package-final.xml`
+- Test: 
`src/test/java/com/intellij/struts2/dom/struts/StrutsHighlightingTest.java`
+
+**Interfaces:**
+- Consumes: the bundled 7.5 DTD from Task 1.
+- Produces: `StrutsPackage.getFinal()` as `GenericAttributeValue<Boolean>`. An 
omitted attribute means the package is not final.
+
+- [ ] **Step 1: Write the failing test**
+
+Create `src/test/testData/strutsXml/highlighting/struts-package-final.xml` 
with the same license comment as `struts-action-allowedMethods.xml`, then:
+
+```xml
+<!DOCTYPE struts PUBLIC
+    "-//Apache Software Foundation//DTD Struts Configuration 7.5//EN"
+    "https://struts.apache.org/dtds/struts-7.5.dtd";>
+
+<struts>
+  <package name="open"/>
+  <package name="locked" final="true"/>
+  <package name="child" extends="open"/>
+  <package name="blocked" extends="<error descr="Parent package is final and 
unextendable: locked">locked</error>"/>
+</struts>
+```
+
+Add to `StrutsHighlightingTest`:
+
+```java
+public void testFinalPackageParent() {
+  performHighlightingTest("struts-package-final.xml");
+}
+```
+
+- [ ] **Step 2: Run the test to verify it fails**
+
+Run: `./gradlew test -x rat --tests 
"StrutsHighlightingTest.testFinalPackageParent" --no-configuration-cache`
+
+Expected: FAIL. The `final` attribute is unknown to the DOM, or the extends 
value `locked` is not highlighted.
+
+- [ ] **Step 3: Model `final` and report a final parent**
+
+On `StrutsPackage`, next to `getAbstract()`, add:
+
+```java
+GenericAttributeValue<Boolean> getFinal();
+```
+
+In `Struts2Bundle.properties`, next to the namespace message, add:
+
+```properties
+dom.highlighting.struts.package.final.parent=Parent package is final and 
unextendable: {0}
+```
+
+At the end of `visitStrutsPackage`, after the namespace check, add:
+
+```java
+final List<StrutsPackage> parents = strutsPackage.getExtends().getValue();
+if (parents == null) {
+  return;
+}
+for (StrutsPackage parent : parents) {
+  if (parent != null && Boolean.TRUE.equals(parent.getFinal().getValue())) {
+    holder.createProblem(strutsPackage.getExtends(),
+                         
StrutsBundle.message("dom.highlighting.struts.package.final.parent",
+                                              
parent.getName().getStringValue()));
+    return;
+  }
+}
+```
+
+Leave an unresolved parent to the existing `extends` converter. A null entry 
in `parents` is unresolved and is skipped here.
+
+- [ ] **Step 4: Run the test to verify it passes**
+
+Run: `./gradlew test -x rat --tests 
"StrutsHighlightingTest.testFinalPackageParent" --no-configuration-cache`
+
+Expected: PASS.
+
+- [ ] **Step 5: Commit**
+
+```bash
+git add 
src/main/java/com/intellij/struts2/dom/struts/strutspackage/StrutsPackage.java \
+  
src/main/java/com/intellij/struts2/dom/inspection/Struts2ModelInspectionVisitor.java
 \
+  src/main/resources/messages/Struts2Bundle.properties \
+  src/test/testData/strutsXml/highlighting/struts-package-final.xml \
+  src/test/java/com/intellij/struts2/dom/struts/StrutsHighlightingTest.java
+git commit -m "$(cat <<'EOF'
+feat: highlight a package that extends a final package
+
+Struts rejects that parent at startup, so the extends value is marked in the 
editor.
+
+EOF
+)"
+```
+
+### Task 4: Complete and check scoped constants
+
+**Files:**
+- Create: 
`src/main/java/com/intellij/struts2/dom/struts/strutspackage/ScopedConstant.java`
+- Create: 
`src/main/java/com/intellij/struts2/dom/struts/strutspackage/ScopedConstantNameConverter.java`
+- Modify: 
`src/main/java/com/intellij/struts2/dom/struts/strutspackage/StrutsPackage.java`
+- Modify: 
`src/main/java/com/intellij/struts2/dom/struts/constant/ConstantValueConverterImpl.java`
+- Create: `src/test/testData/strutsXml/highlighting/struts-scoped-constant.xml`
+- Create: 
`src/test/testData/strutsXml/completion/struts-completionvariants-scoped-constant-name.xml`
+- Create: 
`src/test/testData/strutsXml/completion/struts-completionvariants-scoped-constant-theme-value.xml`
+- Test: 
`src/test/java/com/intellij/struts2/dom/struts/StrutsHighlightingTest.java`
+- Test: 
`src/test/java/com/intellij/struts2/dom/struts/StrutsCompletionTest.java`
+
+**Interfaces:**
+- Consumes: `StrutsPackage` from Task 3, `StrutsConstantManager.getConstants`, 
`ConstantValueConverter`.
+- Produces: `StrutsPackage.getScopedConstants()` as `List<ScopedConstant>`. 
`ScopedConstant.getName()` and `getValue()`. `ScopedConstantNameConverter` 
accepts only the scopable names that are registered for the module.
+
+- [ ] **Step 1: Write the failing tests**
+
+`src/test/testData/strutsXml/highlighting/struts-scoped-constant.xml`, with 
the license comment and the 7.5 DOCTYPE from Task 3:
+
+```xml
+<struts>
+  <package name="ui">
+    <scoped-constant name="struts.ui.theme" value="html5"/>
+    <scoped-constant name="<error descr="Constant 'struts.devMode' is not 
scopable">struts.devMode</error>" value="true"/>
+  </package>
+</struts>
+```
+
+`src/test/testData/strutsXml/completion/struts-completionvariants-scoped-constant-name.xml`:
+
+```xml
+<!DOCTYPE struts PUBLIC
+    "-//Apache Software Foundation//DTD Struts Configuration 7.5//EN"
+    "https://struts.apache.org/dtds/struts-7.5.dtd";>
+
+<struts>
+  <package name="ui">
+    <scoped-constant name="<caret>" value=""/>
+  </package>
+</struts>
+```
+
+`src/test/testData/strutsXml/completion/struts-completionvariants-scoped-constant-theme-value.xml`:
+
+```xml
+<!DOCTYPE struts PUBLIC
+    "-//Apache Software Foundation//DTD Struts Configuration 7.5//EN"
+    "https://struts.apache.org/dtds/struts-7.5.dtd";>
+
+<struts>
+  <package name="ui">
+    <scoped-constant name="struts.ui.theme" value="<caret>"/>
+  </package>
+</struts>
+```
+
+The two completion files also get the license comment.
+
+Add to `StrutsHighlightingTest`:
+
+```java
+public void testScopedConstantName() {
+  performHighlightingTest("struts-scoped-constant.xml");
+}
+```
+
+Add to `StrutsCompletionTest`:
+
+```java
+public void testCompletionVariantsScopedConstantName() {
+  
performCompletionVariantTest("struts-completionvariants-scoped-constant-name.xml",
+                               "struts.ui.templateDir", "struts.ui.theme");
+}
+
+public void testCompletionVariantsScopedConstantThemeValue() {
+  
performCompletionVariantTest("struts-completionvariants-scoped-constant-theme-value.xml",
+                               "ajax", "css_xhtml", "html5", "simple", 
"xhtml");
+}
+```
+
+`performCompletionVariantTest` requires the exact variant set. The default 
fixture has no Convention plugin, so `struts.convention.result.path` must not 
be offered.
+
+- [ ] **Step 2: Run the tests to verify they fail**
+
+Run: `./gradlew test -x rat --tests 
"StrutsHighlightingTest.testScopedConstantName" --tests 
"StrutsCompletionTest.testCompletionVariantsScopedConstantName" --tests 
"StrutsCompletionTest.testCompletionVariantsScopedConstantThemeValue" 
--no-configuration-cache`
+
+Expected: FAIL. `<scoped-constant>` is not a DOM element, so the name is not 
checked and completion has no variants.
+
+- [ ] **Step 3: Add the element, the name converter, and value reuse**
+
+Create `ScopedConstant.java` in package 
`com.intellij.struts2.dom.struts.strutspackage`. Import 
`com.intellij.ide.presentation.Presentation`, 
`com.intellij.struts2.dom.struts.constant.ConstantValueConverter`, 
`com.intellij.util.xml.Convert`, `com.intellij.util.xml.DomElement`, 
`com.intellij.util.xml.GenericAttributeValue`, 
`com.intellij.util.xml.NameValue`, `com.intellij.util.xml.Required`, and 
`com.intellij.util.xml.Stubbed`.
+
+```java
+@Stubbed
+@Presentation(typeName = "Scoped Constant", icon = "AllIcons.Nodes.Parameter")
+public interface ScopedConstant extends DomElement {
+
+  @NameValue
+  @Required
+  @Convert(ScopedConstantNameConverter.class)
+  @Stubbed
+  GenericAttributeValue<String> getName();
+
+  @Required(nonEmpty = false)
+  @Convert(ConstantValueConverter.class)
+  @Stubbed
+  GenericAttributeValue<String> getValue();
+}
+```
+
+Create `ScopedConstantNameConverter.java` in the same package. Import 
`com.intellij.openapi.module.Module`, 
`com.intellij.struts2.model.constant.StrutsConstant`, 
`com.intellij.struts2.model.constant.StrutsConstantManager`, 
`com.intellij.util.containers.ContainerUtil`, 
`com.intellij.util.xml.ConvertContext`, and 
`com.intellij.util.xml.ResolvingConverter`. Use `java.util.Collection`, `List`, 
and `Set`. It extends `ResolvingConverter.StringConverter`.
+
+```java
+public class ScopedConstantNameConverter extends 
ResolvingConverter.StringConverter {
+
+  static final List<String> SCOPABLE_NAMES = List.of(
+      "struts.ui.theme",
+      "struts.ui.templateDir",
+      "struts.convention.result.path");
+
+  @Override
+  public String fromString(@Nullable String name, ConvertContext context) {
+    if (name == null) {
+      return null;
+    }
+    return getVariants(context).contains(name) ? name : null;
+  }
+
+  @Override
+  public @NotNull Collection<String> getVariants(@NotNull ConvertContext 
context) {
+    final Module module = context.getModule();
+    if (module == null) {
+      return List.of();
+    }
+    final StrutsConstantManager constantManager = 
StrutsConstantManager.getInstance(module.getProject());
+    final Set<String> registered = 
ContainerUtil.map2Set(constantManager.getConstants(module), 
StrutsConstant::getName);
+    return ContainerUtil.filter(SCOPABLE_NAMES, registered::contains);
+  }
+
+  @Override
+  public String getErrorMessage(@Nullable String name, ConvertContext context) 
{
+    return "Constant '" + name + "' is not scopable";
+  }
+}
+```
+
+On `StrutsPackage`, add:
+
+```java
+@SubTagList("scoped-constant")
+@NotNull
+List<ScopedConstant> getScopedConstants();
+```
+
+In `ConstantValueConverterImpl.getConverter`, replace the cast to `Constant` 
with:
+
+```java
+final DomElement parent = domElement.getParent();
+final String constantName;
+if (parent instanceof Constant constant) {
+  constantName = constant.getName().getStringValue();
+} else if (parent instanceof ScopedConstant scopedConstant) {
+  constantName = scopedConstant.getName().getStringValue();
+} else {
+  return null;
+}
+if (StringUtil.isEmpty(constantName)) {
+  return null;
+}
+```
+
+Keep the `xmlTag` null check and the `findConverter` call, and pass 
`constantName` to `StrutsConstantKey.create`. Import 
`com.intellij.util.xml.DomElement` and `ScopedConstant`. Delete the old cast to 
`Constant` and the `assert constant != null`.
+
+No `plugin.xml` registration. Both converter classes are concrete, and 
`@Convert` points at them directly. `ConstantValueConverter` is already 
registered.
+
+- [ ] **Step 4: Run the tests to verify they pass**
+
+Run: `./gradlew test -x rat --tests 
"StrutsHighlightingTest.testScopedConstantName" --tests 
"StrutsCompletionTest.testCompletionVariantsScopedConstantName" --tests 
"StrutsCompletionTest.testCompletionVariantsScopedConstantThemeValue" 
--no-configuration-cache`
+
+Expected: PASS.
+
+- [ ] **Step 5: Commit**
+
+```bash
+git add 
src/main/java/com/intellij/struts2/dom/struts/strutspackage/ScopedConstant.java 
\
+  
src/main/java/com/intellij/struts2/dom/struts/strutspackage/ScopedConstantNameConverter.java
 \
+  
src/main/java/com/intellij/struts2/dom/struts/strutspackage/StrutsPackage.java \
+  
src/main/java/com/intellij/struts2/dom/struts/constant/ConstantValueConverterImpl.java
 \
+  src/test/testData/strutsXml/highlighting/struts-scoped-constant.xml \
+  
src/test/testData/strutsXml/completion/struts-completionvariants-scoped-constant-name.xml
 \
+  
src/test/testData/strutsXml/completion/struts-completionvariants-scoped-constant-theme-value.xml
 \
+  src/test/java/com/intellij/struts2/dom/struts/StrutsHighlightingTest.java \
+  src/test/java/com/intellij/struts2/dom/struts/StrutsCompletionTest.java
+git commit -m "$(cat <<'EOF'
+feat: complete and check package scoped constants
+
+Only the built-in scopable names resolve, and their values reuse the constant 
value converter.
+
+EOF
+)"
+```
+
+### Task 5: Complete and check `http-method`
+
+**Files:**
+- Create: 
`src/main/java/com/intellij/struts2/dom/struts/action/HttpMethodConverter.java`
+- Modify: `src/main/java/com/intellij/struts2/dom/struts/action/Action.java`
+- Create: `src/test/testData/strutsXml/highlighting/struts-http-method.xml`
+- Create: 
`src/test/testData/strutsXml/completion/struts-completionvariants-http-method.xml`
+- Test: 
`src/test/java/com/intellij/struts2/dom/struts/StrutsHighlightingTest.java`
+- Test: 
`src/test/java/com/intellij/struts2/dom/struts/StrutsCompletionTest.java`
+
+**Interfaces:**
+- Consumes: `Action`.
+- Produces: `Action.getHttpMethod()` as `GenericAttributeValue<String>` with 
`@Attribute("http-method")` and `@Convert(HttpMethodConverter.class)`. 
`HttpMethodConverter.HTTP_METHODS` is the nine uppercase names.
+
+- [ ] **Step 1: Write the failing tests**
+
+`struts-http-method.xml` with the license comment and the 7.5 DOCTYPE:
+
+```xml
+<struts>
+  <package name="web">
+    <action name="save" http-method="post,<error descr="Cannot resolve 
http-method 'FOO'">FOO</error>"/>
+  </package>
+</struts>
+```
+
+`struts-completionvariants-http-method.xml`:
+
+```xml
+<!DOCTYPE struts PUBLIC
+    "-//Apache Software Foundation//DTD Struts Configuration 7.5//EN"
+    "https://struts.apache.org/dtds/struts-7.5.dtd";>
+
+<struts>
+  <package name="web">
+    <action name="save" http-method="<caret>"/>
+  </package>
+</struts>
+```
+
+Add:
+
+```java
+public void testHttpMethod() {
+  performHighlightingTest("struts-http-method.xml");
+}
+```
+
+```java
+public void testCompletionVariantsHttpMethod() {
+  performCompletionVariantTest("struts-completionvariants-http-method.xml",
+                               "CONNECT", "DELETE", "GET", "HEAD", "OPTIONS", 
"PATCH", "POST", "PUT", "TRACE");
+}
+```
+
+- [ ] **Step 2: Run the tests to verify they fail**
+
+Run: `./gradlew test -x rat --tests "StrutsHighlightingTest.testHttpMethod" 
--tests "StrutsCompletionTest.testCompletionVariantsHttpMethod" 
--no-configuration-cache`
+
+Expected: FAIL. `http-method` has no converter, so `FOO` is not highlighted 
and completion is empty.
+
+- [ ] **Step 3: Add the converter**
+
+Create `HttpMethodConverter` in package 
`com.intellij.struts2.dom.struts.action`. Import `com.intellij.psi.PsiElement`, 
`com.intellij.util.xml.ConvertContext`, `com.intellij.util.xml.DomUtil`, 
`com.intellij.util.xml.GenericDomValue`, 
`com.intellij.util.xml.converters.DelimitedListConverter`, 
`org.jetbrains.annotations.Nullable`, `java.util.List`, and `java.util.Locale`. 
Extend `DelimitedListConverter<String>`.
+
+```java
+public class HttpMethodConverter extends DelimitedListConverter<String> {
+
+  static final List<String> HTTP_METHODS = List.of(
+      "GET", "HEAD", "POST", "PUT", "DELETE", "TRACE", "OPTIONS", "CONNECT", 
"PATCH");
+
+  public HttpMethodConverter() {
+    super(",");
+  }
+
+  @Override
+  protected String convertString(@Nullable String token, ConvertContext 
context) {
+    if (token != null && 
HTTP_METHODS.contains(token.toUpperCase(Locale.ROOT))) {
+      return token;
+    }
+    return null;
+  }
+
+  @Override
+  protected String toString(@Nullable String token) {
+    return token;
+  }
+
+  @Override
+  protected Object[] getReferenceVariants(ConvertContext context,
+                                          GenericDomValue<? extends 
List<String>> value) {
+    return HTTP_METHODS.toArray();
+  }
+
+  @Override
+  protected PsiElement resolveReference(@Nullable String token, ConvertContext 
context) {
+    if (token != null && 
HTTP_METHODS.contains(token.toUpperCase(Locale.ROOT))) {
+      return DomUtil.getValueElement(context.getInvocationElement());
+    }
+    return null;
+  }
+
+  @Override
+  protected String getUnresolvedMessage(String token) {
+    return "Cannot resolve http-method '" + token + "'";
+  }
+}
+```
+
+On `Action`, next to `getMethod()`, add:
+
+```java
+@Attribute("http-method")
+@Convert(HttpMethodConverter.class)
+GenericAttributeValue<String> getHttpMethod();
+```
+
+`post` is kept as written because `convertString` returns the original token. 
Completion offers the uppercase names.
+
+- [ ] **Step 4: Run the tests to verify they pass**
+
+Run: `./gradlew test -x rat --tests "StrutsHighlightingTest.testHttpMethod" 
--tests "StrutsCompletionTest.testCompletionVariantsHttpMethod" 
--no-configuration-cache`
+
+Expected: PASS.
+
+- [ ] **Step 5: Commit**
+
+```bash
+git add 
src/main/java/com/intellij/struts2/dom/struts/action/HttpMethodConverter.java \
+  src/main/java/com/intellij/struts2/dom/struts/action/Action.java \
+  src/test/testData/strutsXml/highlighting/struts-http-method.xml \
+  
src/test/testData/strutsXml/completion/struts-completionvariants-http-method.xml
 \
+  src/test/java/com/intellij/struts2/dom/struts/StrutsHighlightingTest.java \
+  src/test/java/com/intellij/struts2/dom/struts/StrutsCompletionTest.java
+git commit -m "$(cat <<'EOF'
+feat: complete and check action http-method
+
+Accept the nine HTTP methods in any case and highlight any other token.
+
+EOF
+)"
+```
+
+### Task 6: Check `extension` on package and action
+
+**Files:**
+- Create: 
`src/main/java/com/intellij/struts2/dom/struts/strutspackage/ExtensionListConverter.java`
+- Modify: 
`src/main/java/com/intellij/struts2/dom/struts/strutspackage/StrutsPackage.java`
+- Modify: `src/main/java/com/intellij/struts2/dom/struts/action/Action.java`
+- Create: `src/test/testData/strutsXml/highlighting/struts-extension.xml`
+- Test: 
`src/test/java/com/intellij/struts2/dom/struts/StrutsHighlightingTest.java`
+
+**Interfaces:**
+- Consumes: `StrutsPackage` and `Action`.
+- Produces: `StrutsPackage.getExtension()` and `Action.getExtension()`, both 
`GenericAttributeValue<String>` converted by `ExtensionListConverter`. There 
are no completion variants.
+
+- [ ] **Step 1: Write the failing test**
+
+`struts-extension.xml` with the license comment and the 7.5 DOCTYPE:
+
+```xml
+<struts>
+  <package name="web" extension="action,<error descr="Invalid extension 
'.do'">.do</error>,<error descr="Invalid extension 'a/b'">a/b</error>,<error 
descr="Invalid extension 'x y'">x y</error>,">
+    <action name="plain" extension=","/>
+  </package>
+</struts>
+```
+
+The package value ends with a comma, which is an empty token and must stay 
unmarked. The action value `","` is two empty tokens and must stay unmarked.
+
+Add:
+
+```java
+public void testExtensionTokens() {
+  performHighlightingTest("struts-extension.xml");
+}
+```
+
+- [ ] **Step 2: Run the test to verify it fails**
+
+Run: `./gradlew test -x rat --tests 
"StrutsHighlightingTest.testExtensionTokens" --no-configuration-cache`
+
+Expected: FAIL. `extension` is not checked, so `.do`, `a/b`, and `x y` are not 
highlighted.
+
+- [ ] **Step 3: Add the converter to both elements**
+
+Create `ExtensionListConverter` in package 
`com.intellij.struts2.dom.struts.strutspackage`. Import 
`com.intellij.psi.PsiElement`, `com.intellij.util.ArrayUtilRt`, 
`com.intellij.util.xml.ConvertContext`, `com.intellij.util.xml.DomUtil`, 
`com.intellij.util.xml.GenericDomValue`, 
`com.intellij.util.xml.converters.DelimitedListConverter`, 
`org.jetbrains.annotations.NotNull`, and `org.jetbrains.annotations.Nullable`. 
Extend `DelimitedListConverter<String>`.
+
+```java
+public class ExtensionListConverter extends DelimitedListConverter<String> {
+
+  public ExtensionListConverter() {
+    super(",");
+  }
+
+  static boolean isLegal(@NotNull String token) {
+    return !token.startsWith(".") && !token.contains("/") && 
!containsWhitespace(token);
+  }
+
+  private static boolean containsWhitespace(String token) {
+    for (int i = 0; i < token.length(); i++) {
+      if (Character.isWhitespace(token.charAt(i))) {
+        return true;
+      }
+    }
+    return false;
+  }
+
+  @Override
+  protected String convertString(@Nullable String token, ConvertContext 
context) {
+    if (token == null || token.isEmpty() || isLegal(token)) {
+      return token;
+    }
+    return null;
+  }
+
+  @Override
+  protected String toString(@Nullable String token) {
+    return token;
+  }
+
+  @Override
+  protected Object[] getReferenceVariants(ConvertContext context,
+                                          GenericDomValue<? extends 
List<String>> value) {
+    return ArrayUtilRt.EMPTY_OBJECT_ARRAY;
+  }
+
+  @Override
+  protected PsiElement resolveReference(@Nullable String token, ConvertContext 
context) {
+    if (token == null || token.isEmpty() || isLegal(token)) {
+      return DomUtil.getValueElement(context.getInvocationElement());
+    }
+    return null;
+  }
+
+  @Override
+  protected String getUnresolvedMessage(String token) {
+    return "Invalid extension '" + token + "'";
+  }
+}
+```
+
+Do not trim. A token `" do"` contains whitespace and is illegal.
+
+On `StrutsPackage` and on `Action`, add:
+
+```java
+@Convert(ExtensionListConverter.class)
+GenericAttributeValue<String> getExtension();
+```
+
+`Action` must import `ExtensionListConverter`.
+
+- [ ] **Step 4: Run the test to verify it passes**
+
+Run: `./gradlew test -x rat --tests 
"StrutsHighlightingTest.testExtensionTokens" --no-configuration-cache`
+
+Expected: PASS.
+
+- [ ] **Step 5: Commit**
+
+```bash
+git add 
src/main/java/com/intellij/struts2/dom/struts/strutspackage/ExtensionListConverter.java
 \
+  
src/main/java/com/intellij/struts2/dom/struts/strutspackage/StrutsPackage.java \
+  src/main/java/com/intellij/struts2/dom/struts/action/Action.java \
+  src/test/testData/strutsXml/highlighting/struts-extension.xml \
+  src/test/java/com/intellij/struts2/dom/struts/StrutsHighlightingTest.java
+git commit -m "$(cat <<'EOF'
+feat: check package and action extension tokens
+
+Highlight an extension that starts with a dot, contains a slash, or contains 
whitespace.
+
+EOF
+)"
+```
+
+### Task 7: Note the change and run the suite
+
+**Files:**
+- Modify: `CHANGELOG.md`
+
+**Interfaces:**
+- Consumes: the behavior from Tasks 1–6.
+- Produces: an unreleased changelog entry for issue 147.
+
+- [ ] **Step 1: Add the changelog note**
+
+Under `## [Unreleased]`, add an `### Added` section before `### Changed` if it 
is not already there:
+
+```markdown
+### Added
+
+- Support the published Struts 6.5 and 7.5 configuration DTDs, including 
`<package final>` and `extension`, `<scoped-constant>`, and `<action 
http-method>` 
([#147](https://github.com/apache/struts-intellij-plugin/issues/147))
+```
+
+- [ ] **Step 2: Run the focused tests and the suite**
+
+```bash
+./gradlew test -x rat --tests "StrutsDtdValidatorTest" --tests 
"StrutsHighlightingTest" --tests "StrutsCompletionTest" --tests 
"StrutsFileTemplateProviderTest" --no-configuration-cache
+./gradlew test -x rat --no-configuration-cache
+```
+
+Expected: PASS. `StrutsCompletionTest.testCompletionVariantsPackageExtends` 
stays ignored; it is already named `_testCompletionVariantsPackageExtends`.
+
+- [ ] **Step 3: Commit**
+
+```bash
+git add CHANGELOG.md
+git commit -m "$(cat <<'EOF'
+docs: note Struts 6.5 and 7.5 configuration grammar
+
+EOF
+)"
+```
diff --git 
a/docs/superpowers/specs/2026-11-11-struts-7-5-configuration-grammar-design.md 
b/docs/superpowers/specs/2026-11-11-struts-7-5-configuration-grammar-design.md
new file mode 100644
index 0000000..2b6430b
--- /dev/null
+++ 
b/docs/superpowers/specs/2026-11-11-struts-7-5-configuration-grammar-design.md
@@ -0,0 +1,195 @@
+# Struts 6.5 and 7.5 Configuration Grammar
+
+**Date:** 2026-11-11
+**Status:** Approved for implementation planning
+**Issue:** https://github.com/apache/struts-intellij-plugin/issues/147
+
+## Problem
+
+Struts 7.5.0 publishes new `struts.xml` grammar. The plugin bundles 
configuration DTDs through `struts-6.0.dtd`, so a 6.5 or 7.5 DOCTYPE is 
unrecognized and the new syntax is invalid in the editor.
+
+The published catalog is https://struts.apache.org/dtds/. Compared with the 
bundled 6.0 DTD:
+
+- `struts-6.5.dtd` adds `final` on `<package>`.
+- `struts-7.5.dtd` adds `final` and `extension` on `<package>`, 
`<scoped-constant name value>`, and `http-method` and `extension` on `<action>`.
+
+Release notes: 
https://cwiki.apache.org/confluence/spaces/WW/pages/462816288/Version+Notes+7.5.0
+
+## Goals
+
+1. Validate files that use the published 6.5 and 7.5 DOCTYPEs against bundled 
copies of those DTDs.
+2. Complete and check `<scoped-constant>`, `http-method`, `extension`, and 
`final`.
+3. Select the 6.5 or 7.5 DOCTYPE for a new `struts.xml` from the detected 
`struts2-core` version, using the table in File Templates.
+4. Keep the change static, in the existing DTD, DOM, and file-template paths.
+
+## Non-Goals
+
+- OGNL property resolution and the `@StrutsParameter` inspection.
+- Tag libraries and validators. Those already come from the Struts JAR on the 
classpath.
+- Struts 1, Tiles, and XWork DTDs on the same catalog.
+- Reading `ScopableConstants` implementations from the classpath.
+- Rewriting the DOCTYPE of an existing `struts.xml`.
+
+## Decision
+
+Use a static DTD and DOM update, the same style as the 7.2.1 constant metadata.
+
+One DOM model serves every DTD version. The bundled DTD for a file decides 
whether the new syntax is legal in that file. Completion is not switched per 
DTD version.
+
+## Alternatives Considered
+
+### DTD registration only
+
+Bundle and register the two files so DOCTYPE checks and XML validation accept 
6.5 and 7.5 documents. Leave the DOM unchanged.
+
+Rejected because `http-method`, `extension`, and `<scoped-constant>` would get 
no value completion or semantic checks.
+
+### Classpath discovery for scopable names
+
+Read `<scoped-constant>` names from `ScopableConstants` beans in the module's 
Struts JAR.
+
+Rejected because the built-in set has three names, and the rest of the 
plugin's constants are static lists.
+
+## DTD Registration
+
+Copy these files from https://struts.apache.org/dtds/ unchanged into 
`src/main/resources/resources/dtds/`:
+
+- `struts-6.5.dtd`
+- `struts-7.5.dtd`
+
+Register each system URI and public ID in `StrutsConstants` and 
`Struts2ResourceProvider`. Add the `https` URIs to 
`StrutsConstants.STRUTS_DTDS`.
+
+| File | System URI | Public ID |
+|---|---|---|
+| `struts-6.5.dtd` | `https://struts.apache.org/dtds/struts-6.5.dtd` | 
`-//Apache Software Foundation//DTD Struts Configuration 6.5//EN` |
+| `struts-7.5.dtd` | `https://struts.apache.org/dtds/struts-7.5.dtd` | 
`-//Apache Software Foundation//DTD Struts Configuration 7.5//EN` |
+
+An `http://` URI for either file is reported as "use https" by the existing 
`http://struts.apache.org/dtds/struts-` prefix check in `StrutsDtdValidator`.
+
+## File Templates
+
+Add `struts_6_5.xml.ft` and `struts_7_5.xml.ft` under 
`src/main/resources/fileTemplates/j2ee/`, beside `struts_6_0.xml.ft`, plus a 
matching `.html` description for each. The descriptor names registered in 
`StrutsFileTemplateGroupDescriptorFactory` are `struts_6_5.xml` and 
`struts_7_5.xml`. Each template body is an empty `<struts>` document with the 
DOCTYPE from the table above.
+
+`StrutsFileTemplateProvider` selects a template from the `struts2-core` 
version detected in the module. The detected value is a Maven version such as 
`6.5.0` or `7.5.0`. The existing `isNewerThan` helper is a strict greater-than, 
so the new steps use an inclusive comparison and the boundary versions match.
+
+The mapping from a version string to a template name is a package-visible 
method on `StrutsFileTemplateProvider`. `determineFileTemplate` calls that 
method and then loads the J2EE template.
+
+| Detected version | Template |
+|---|---|
+| At least 7.5, including 7.5.0, 7.6, and 8.0 | `struts_7_5.xml` |
+| At least 6.5 and below 7.0, including 6.5.0 and 6.6 | `struts_6_5.xml` |
+| Above 6.0 and below 6.5, and from 7.0.0 through 7.4.x | `struts_6_0.xml`, 
unchanged |
+| Older than the 6.0 step | The existing older templates, unchanged |
+| No version detected | The current fallback, unchanged |
+
+There is no `struts-7.0.dtd`. Modules on 7.0.0 through 7.4.x keep the 6.0 
template they get today.
+
+## DOM
+
+`StrutsPackage` gains:
+
+- `final`, a boolean attribute, the same as `abstract`. An omitted `final` 
means the package is not final.
+- `extension`, a comma-separated string.
+- a list of `<scoped-constant>` children.
+
+`Action` gains:
+
+- `http-method`, a comma-separated string.
+- `extension`, a comma-separated string.
+
+`<scoped-constant>` is a new element with required `name` and `value`, the 
same shape as `<constant>`. Required `name` and `value` use the normal DOM 
required-attribute check. Omitted optional attributes stay valid.
+
+## Checks
+
+### Final parent
+
+When `extends` resolves to one or more packages and any resolved parent has 
`final` true, highlight that `extends` value. Struts rejects that parent at 
startup with "Parent package is final and unextendable". An unresolved parent 
stays with the existing `extends` resolver.
+
+`Struts2ModelInspectionVisitor` reports this when it visits the package.
+
+### Scoped constant
+
+Name completion is this static set intersected with the constants already 
registered for the module:
+
+- `struts.ui.theme`
+- `struts.ui.templateDir`
+- `struts.convention.result.path`, only when the Convention contributor is 
active for that module
+
+`value` uses the existing constant-value converter. For `struts.ui.theme` that 
offers `simple`, `xhtml`, `css_xhtml`, `html5`, and deprecated `ajax`. 
`struts.ui.templateDir` and `struts.convention.result.path` stay free text.
+
+A name outside the scopable set is highlighted. A name registered only by a 
custom `ScopableConstants` bean is outside the set, so it is highlighted too.
+
+### HTTP method
+
+Completion offers `GET`, `HEAD`, `POST`, `PUT`, `DELETE`, `TRACE`, `OPTIONS`, 
`CONNECT`, and `PATCH`. The list is comma-separated, in the same converter 
style as `allowed-methods`. A token matches one of those nine names ignoring 
case. Any other token is highlighted.
+
+### Extension
+
+The same comma-separated rules apply on `<package>` and `<action>`. There is 
no fixed completion list. The tokens are application-specific, such as 
`action`, `do`, or an empty token for an extensionless URL.
+
+Split on `,` and do not trim. A token is highlighted when it starts with `.`, 
contains `/`, or contains whitespace. An empty token is valid, including a 
trailing comma that produces one.
+
+## Data Flow
+
+```text
+struts.xml DOCTYPE system id
+        |
+        v
+Struts2ResourceProvider  -->  bundled struts-6.5.dtd or struts-7.5.dtd
+        |
+        v
+StrutsDtdValidator accepts the same https URI
+
+<scoped-constant>, http-method, extension
+        |
+        v
+DOM converters  -->  completion variants and unresolved tokens
+
+<package extends="...">
+        |
+        v
+Struts2ModelInspectionVisitor highlights a resolved final parent
+
+Create struts.xml
+        |
+        v
+detected struts2-core version  -->  struts_6_5.xml or struts_7_5.xml
+```
+
+## Testing
+
+Add cases to the existing test classes. Highlighting fixtures use the `<error 
descr="...">` style already used for `allowed-methods`.
+
+`StrutsDtdValidatorTest`:
+
+- The 6.5 and 7.5 `https` URIs are `OK`.
+- The `http://` form of each is `HTTP_INSTEAD_OF_HTTPS`.
+
+`StrutsHighlightingTest`:
+
+- Extending a `final` package is highlighted.
+- An unknown `<scoped-constant>` name is highlighted, and `struts.ui.theme` is 
clean.
+- An unknown `http-method` token is highlighted, and `post` is clean.
+- An `extension` token with a leading `.`, a `/`, or whitespace is 
highlighted, and an empty token is clean.
+
+`StrutsCompletionTest`, in the default fixture where the Convention 
contributor is inactive:
+
+- `http-method` offers the nine methods.
+- A scoped-constant name offers `struts.ui.theme` and `struts.ui.templateDir`, 
and does not offer `struts.convention.result.path`.
+- The value for `struts.ui.theme` offers `simple`, `xhtml`, `css_xhtml`, 
`html5`, and `ajax`.
+
+`StrutsFileTemplateProviderTest` calls the package-visible version mapping 
directly, with no fake JAR:
+
+- `6.4.0` and `7.4.0` stay on the 6.0 template.
+- `6.5.0` selects the 6.5 template.
+- `7.5.0` and `7.6.0` select the 7.5 template.
+- A missing version keeps today's fallback.
+
+`CHANGELOG.md` gets an unreleased note for the 6.5 and 7.5 DTD and DOM support.
+
+Run the focused tests, then the suite:
+
+```bash
+./gradlew test -x rat --tests "StrutsDtdValidatorTest" --tests 
"StrutsHighlightingTest" --tests "StrutsCompletionTest" --tests 
"StrutsFileTemplateProviderTest"
+./gradlew test -x rat
+```
diff --git a/src/main/java/com/intellij/struts2/Struts2ResourceProvider.java 
b/src/main/java/com/intellij/struts2/Struts2ResourceProvider.java
index 9d7ee05..77fda3d 100644
--- a/src/main/java/com/intellij/struts2/Struts2ResourceProvider.java
+++ b/src/main/java/com/intellij/struts2/Struts2ResourceProvider.java
@@ -54,6 +54,14 @@ final class Struts2ResourceProvider implements 
StandardResourceProvider {
                 StrutsConstants.STRUTS_6_0_DTD_ID,
                 "struts-6.0.dtd", registrar);
 
+        addDTDResource(StrutsConstants.STRUTS_6_5_DTD_URI,
+                StrutsConstants.STRUTS_6_5_DTD_ID,
+                "struts-6.5.dtd", registrar);
+
+        addDTDResource(StrutsConstants.STRUTS_7_5_DTD_URI,
+                StrutsConstants.STRUTS_7_5_DTD_ID,
+                "struts-7.5.dtd", registrar);
+
 
         addDTDResource(StrutsConstants.VALIDATOR_1_00_DTD_URI,
                 StrutsConstants.VALIDATOR_1_00_DTD_ID,
diff --git a/src/main/java/com/intellij/struts2/StrutsConstants.java 
b/src/main/java/com/intellij/struts2/StrutsConstants.java
index cb0c81d..a86416c 100644
--- a/src/main/java/com/intellij/struts2/StrutsConstants.java
+++ b/src/main/java/com/intellij/struts2/StrutsConstants.java
@@ -120,6 +120,16 @@ public final class StrutsConstants {
   @NonNls
   public static final String STRUTS_6_0_DTD_ID = "-//Apache Software 
Foundation//DTD Struts Configuration 6.0//EN";
 
+  @NonNls
+  public static final String STRUTS_6_5_DTD_URI = 
"https://struts.apache.org/dtds/struts-6.5.dtd";;
+  @NonNls
+  public static final String STRUTS_6_5_DTD_ID = "-//Apache Software 
Foundation//DTD Struts Configuration 6.5//EN";
+
+  @NonNls
+  public static final String STRUTS_7_5_DTD_URI = 
"https://struts.apache.org/dtds/struts-7.5.dtd";;
+  @NonNls
+  public static final String STRUTS_7_5_DTD_ID = "-//Apache Software 
Foundation//DTD Struts Configuration 7.5//EN";
+
   /**
    * All struts.xml DTD-IDs/URIs.
    */
@@ -130,7 +140,9 @@ public final class StrutsConstants {
     STRUTS_2_1_7_DTD_URI, STRUTS_2_1_7_DTD_ID,
     STRUTS_2_3_DTD_URI, STRUTS_2_3_DTD_ID,
     STRUTS_2_5_DTD_URI, STRUTS_2_5_DTD_ID,
-    STRUTS_6_0_DTD_URI, STRUTS_6_0_DTD_ID
+    STRUTS_6_0_DTD_URI, STRUTS_6_0_DTD_ID,
+    STRUTS_6_5_DTD_URI, STRUTS_6_5_DTD_ID,
+    STRUTS_7_5_DTD_URI, STRUTS_7_5_DTD_ID
   };
 
   @NonNls
diff --git 
a/src/main/java/com/intellij/struts2/StrutsFileTemplateGroupDescriptorFactory.java
 
b/src/main/java/com/intellij/struts2/StrutsFileTemplateGroupDescriptorFactory.java
index a7a4f6a..bad5fcf 100644
--- 
a/src/main/java/com/intellij/struts2/StrutsFileTemplateGroupDescriptorFactory.java
+++ 
b/src/main/java/com/intellij/struts2/StrutsFileTemplateGroupDescriptorFactory.java
@@ -60,6 +60,10 @@ public class StrutsFileTemplateGroupDescriptorFactory 
implements FileTemplateGro
    */
   public static final String STRUTS_6_0_XML = "struts_6_0.xml";
 
+  public static final String STRUTS_6_5_XML = "struts_6_5.xml";
+
+  public static final String STRUTS_7_5_XML = "struts_7_5.xml";
+
   /**
    * Template for {@code validation.xml}.  TODO cannot name "validation.xml" 
due to SA using this template name.
    */
@@ -81,6 +85,10 @@ public class StrutsFileTemplateGroupDescriptorFactory 
implements FileTemplateGro
                                                  
StrutsIcons.STRUTS_CONFIG_FILE));
     group.addTemplate(new FileTemplateDescriptor(STRUTS_6_0_XML,
                                                  
StrutsIcons.STRUTS_CONFIG_FILE));
+    group.addTemplate(new FileTemplateDescriptor(STRUTS_6_5_XML,
+                                                 
StrutsIcons.STRUTS_CONFIG_FILE));
+    group.addTemplate(new FileTemplateDescriptor(STRUTS_7_5_XML,
+                                                 
StrutsIcons.STRUTS_CONFIG_FILE));
 
     group.addTemplate(new FileTemplateDescriptor(VALIDATION_XML,
                                                  
StrutsIcons.VALIDATION_CONFIG_FILE));
diff --git a/src/main/java/com/intellij/struts2/StrutsFileTemplateProvider.java 
b/src/main/java/com/intellij/struts2/StrutsFileTemplateProvider.java
index 60e0d1b..810b6d3 100644
--- a/src/main/java/com/intellij/struts2/StrutsFileTemplateProvider.java
+++ b/src/main/java/com/intellij/struts2/StrutsFileTemplateProvider.java
@@ -21,6 +21,7 @@ import com.intellij.openapi.project.Project;
 import com.intellij.struts2.facet.ui.StrutsVersionDetector;
 import com.intellij.util.text.VersionComparatorUtil;
 import org.jetbrains.annotations.NotNull;
+import org.jetbrains.annotations.Nullable;
 
 /**
  * @author Yann C&eacute;bron
@@ -39,24 +40,37 @@ public class StrutsFileTemplateProvider {
 
   @NotNull
   public FileTemplate determineFileTemplate(Project project) {
-    String template;
-    if (isNewerThan("6.0")) {
-      template = StrutsFileTemplateGroupDescriptorFactory.STRUTS_6_0_XML;
-    } else if (isNewerThan("2.5")) {
-      template = StrutsFileTemplateGroupDescriptorFactory.STRUTS_2_5_XML;
-    } else if (isNewerThan("2.3")) {
-      template = StrutsFileTemplateGroupDescriptorFactory.STRUTS_2_3_XML;
-    } else if (my21orNewer) {
-      template = isNewerThan("2.1.7") ?
-                 StrutsFileTemplateGroupDescriptorFactory.STRUTS_2_1_7_XML :
-                 StrutsFileTemplateGroupDescriptorFactory.STRUTS_2_1_XML;
+    final FileTemplateManager fileTemplateManager = 
FileTemplateManager.getInstance(project);
+    return fileTemplateManager.getJ2eeTemplate(templateNameFor(myVersionName));
+  }
+
+  @NotNull
+  static String templateNameFor(@Nullable String version) {
+    if (version == null) {
+      return StrutsFileTemplateGroupDescriptorFactory.STRUTS_2_0_XML;
     }
-    else {
-      template = StrutsFileTemplateGroupDescriptorFactory.STRUTS_2_0_XML;
+    if (VersionComparatorUtil.compare(version, "7.5") >= 0) {
+      return StrutsFileTemplateGroupDescriptorFactory.STRUTS_7_5_XML;
     }
-
-    final FileTemplateManager fileTemplateManager = 
FileTemplateManager.getInstance(project);
-    return fileTemplateManager.getJ2eeTemplate(template);
+    if (VersionComparatorUtil.compare(version, "6.5") >= 0
+        && VersionComparatorUtil.compare(version, "7.0") < 0) {
+      return StrutsFileTemplateGroupDescriptorFactory.STRUTS_6_5_XML;
+    }
+    if (VersionComparatorUtil.compare(version, "6.0") >= 0) {
+      return StrutsFileTemplateGroupDescriptorFactory.STRUTS_6_0_XML;
+    }
+    if (VersionComparatorUtil.compare(version, "2.5") > 0) {
+      return StrutsFileTemplateGroupDescriptorFactory.STRUTS_2_5_XML;
+    }
+    if (VersionComparatorUtil.compare(version, "2.3") > 0) {
+      return StrutsFileTemplateGroupDescriptorFactory.STRUTS_2_3_XML;
+    }
+    if (VersionComparatorUtil.compare(version, "2.1") > 0) {
+      return VersionComparatorUtil.compare(version, "2.1.7") > 0
+             ? StrutsFileTemplateGroupDescriptorFactory.STRUTS_2_1_7_XML
+             : StrutsFileTemplateGroupDescriptorFactory.STRUTS_2_1_XML;
+    }
+    return StrutsFileTemplateGroupDescriptorFactory.STRUTS_2_0_XML;
   }
 
   public boolean is21orNewer() {
diff --git 
a/src/main/java/com/intellij/struts2/dom/inspection/Struts2ModelInspectionVisitor.java
 
b/src/main/java/com/intellij/struts2/dom/inspection/Struts2ModelInspectionVisitor.java
index 703f4b6..99d3e20 100644
--- 
a/src/main/java/com/intellij/struts2/dom/inspection/Struts2ModelInspectionVisitor.java
+++ 
b/src/main/java/com/intellij/struts2/dom/inspection/Struts2ModelInspectionVisitor.java
@@ -38,6 +38,7 @@ import com.intellij.util.xml.*;
 import com.intellij.util.xml.highlighting.DomElementAnnotationHolder;
 
 import java.util.Collection;
+import java.util.List;
 import java.util.Map;
 
 /**
@@ -107,6 +108,19 @@ class Struts2ModelInspectionVisitor implements 
DomElementVisitor {
       holder.createProblem(strutsPackage.getNamespace(),
                            
StrutsBundle.message("dom.highlighting.struts.package.must.start.with.slash"));
     }
+
+    final List<StrutsPackage> parents = strutsPackage.getExtends().getValue();
+    if (parents == null) {
+      return;
+    }
+    for (StrutsPackage parent : parents) {
+      if (parent != null && Boolean.TRUE.equals(parent.getFinal().getValue())) 
{
+        holder.createProblem(strutsPackage.getExtends(),
+                             
StrutsBundle.message("dom.highlighting.struts.package.final.parent",
+                                                  
parent.getName().getStringValue()));
+        return;
+      }
+    }
   }
 
   private void checkExtendableClassConverter(final GenericAttributeValue 
clazzAttributeValue) {
diff --git a/src/main/java/com/intellij/struts2/dom/struts/action/Action.java 
b/src/main/java/com/intellij/struts2/dom/struts/action/Action.java
index 565be33..b5f5488 100644
--- a/src/main/java/com/intellij/struts2/dom/struts/action/Action.java
+++ b/src/main/java/com/intellij/struts2/dom/struts/action/Action.java
@@ -20,6 +20,7 @@ import com.intellij.psi.PsiClass;
 import com.intellij.psi.PsiMethod;
 import com.intellij.struts2.dom.ExtendableClassConverter;
 import com.intellij.struts2.dom.params.ParamsElement;
+import com.intellij.struts2.dom.struts.strutspackage.ExtensionListConverter;
 import com.intellij.struts2.dom.struts.strutspackage.InterceptorRef;
 import com.intellij.struts2.dom.struts.strutspackage.StrutsPackage;
 import com.intellij.util.xml.*;
@@ -62,6 +63,13 @@ public interface Action extends ParamsElement {
   @Convert(ActionMethodConverter.class)
   GenericAttributeValue<PsiMethod> getMethod();
 
+  @Attribute("http-method")
+  @Convert(HttpMethodConverter.class)
+  GenericAttributeValue<String> getHttpMethod();
+
+  @Convert(ExtensionListConverter.class)
+  GenericAttributeValue<String> getExtension();
+
 
   // --------------------
   @SubTagList("result")
diff --git 
a/src/main/java/com/intellij/struts2/dom/struts/action/HttpMethodConverter.java 
b/src/main/java/com/intellij/struts2/dom/struts/action/HttpMethodConverter.java
new file mode 100644
index 0000000..ab96878
--- /dev/null
+++ 
b/src/main/java/com/intellij/struts2/dom/struts/action/HttpMethodConverter.java
@@ -0,0 +1,67 @@
+/*
+ * Copyright 2026 The authors
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.intellij.struts2.dom.struts.action;
+
+import com.intellij.psi.PsiElement;
+import com.intellij.util.xml.ConvertContext;
+import com.intellij.util.xml.DomUtil;
+import com.intellij.util.xml.GenericDomValue;
+import com.intellij.util.xml.converters.DelimitedListConverter;
+import org.jetbrains.annotations.Nullable;
+
+import java.util.List;
+import java.util.Locale;
+
+public class HttpMethodConverter extends DelimitedListConverter<String> {
+
+  static final List<String> HTTP_METHODS = List.of(
+      "GET", "HEAD", "POST", "PUT", "DELETE", "TRACE", "OPTIONS", "CONNECT", 
"PATCH");
+
+  public HttpMethodConverter() {
+    super(",");
+  }
+
+  @Override
+  protected String convertString(@Nullable String token, ConvertContext 
context) {
+    if (token != null && 
HTTP_METHODS.contains(token.toUpperCase(Locale.ROOT))) {
+      return token;
+    }
+    return null;
+  }
+
+  @Override
+  protected String toString(@Nullable String token) {
+    return token;
+  }
+
+  @Override
+  protected Object[] getReferenceVariants(ConvertContext context,
+                                          GenericDomValue<? extends 
List<String>> value) {
+    return HTTP_METHODS.toArray();
+  }
+
+  @Override
+  protected PsiElement resolveReference(@Nullable String token, ConvertContext 
context) {
+    if (token != null && 
HTTP_METHODS.contains(token.toUpperCase(Locale.ROOT))) {
+      return DomUtil.getValueElement((GenericDomValue<?>) 
context.getInvocationElement());
+    }
+    return null;
+  }
+
+  @Override
+  protected String getUnresolvedMessage(String token) {
+    return "Cannot resolve http-method '" + token + "'";
+  }
+}
diff --git 
a/src/main/java/com/intellij/struts2/dom/struts/constant/ConstantValueConverterImpl.java
 
b/src/main/java/com/intellij/struts2/dom/struts/constant/ConstantValueConverterImpl.java
index a6a20a1..e2fefbe 100644
--- 
a/src/main/java/com/intellij/struts2/dom/struts/constant/ConstantValueConverterImpl.java
+++ 
b/src/main/java/com/intellij/struts2/dom/struts/constant/ConstantValueConverterImpl.java
@@ -17,9 +17,11 @@ package com.intellij.struts2.dom.struts.constant;
 
 import com.intellij.openapi.util.text.StringUtil;
 import com.intellij.psi.xml.XmlTag;
+import com.intellij.struts2.dom.struts.strutspackage.ScopedConstant;
 import com.intellij.struts2.model.constant.StrutsConstantKey;
 import com.intellij.struts2.model.constant.StrutsConstantManager;
 import com.intellij.util.xml.Converter;
+import com.intellij.util.xml.DomElement;
 import com.intellij.util.xml.GenericDomValue;
 import org.jetbrains.annotations.NotNull;
 import org.jetbrains.annotations.Nullable;
@@ -32,10 +34,15 @@ public class ConstantValueConverterImpl extends 
ConstantValueConverter {
     @Override
     @Nullable
     public Converter<?> getConverter(@NotNull final GenericDomValue 
domElement) {
-        final Constant constant = (Constant) domElement.getParent();
-        assert constant != null;
-
-        final String constantName = constant.getName().getStringValue();
+        final DomElement parent = domElement.getParent();
+        final String constantName;
+        if (parent instanceof Constant constant) {
+            constantName = constant.getName().getStringValue();
+        } else if (parent instanceof ScopedConstant scopedConstant) {
+            constantName = scopedConstant.getName().getStringValue();
+        } else {
+            return null;
+        }
         if (StringUtil.isEmpty(constantName)) {
             return null;
         }
diff --git 
a/src/main/java/com/intellij/struts2/dom/struts/strutspackage/ExtensionListConverter.java
 
b/src/main/java/com/intellij/struts2/dom/struts/strutspackage/ExtensionListConverter.java
new file mode 100644
index 0000000..58d316b
--- /dev/null
+++ 
b/src/main/java/com/intellij/struts2/dom/struts/strutspackage/ExtensionListConverter.java
@@ -0,0 +1,78 @@
+/*
+ * Copyright 2026 The authors
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.intellij.struts2.dom.struts.strutspackage;
+
+import com.intellij.psi.PsiElement;
+import com.intellij.util.ArrayUtilRt;
+import com.intellij.util.xml.ConvertContext;
+import com.intellij.util.xml.DomUtil;
+import com.intellij.util.xml.GenericDomValue;
+import com.intellij.util.xml.converters.DelimitedListConverter;
+import org.jetbrains.annotations.NotNull;
+import org.jetbrains.annotations.Nullable;
+
+import java.util.List;
+
+public class ExtensionListConverter extends DelimitedListConverter<String> {
+
+  public ExtensionListConverter() {
+    super(",");
+  }
+
+  static boolean isLegal(@NotNull String token) {
+    return !token.startsWith(".") && !token.contains("/") && 
!containsWhitespace(token);
+  }
+
+  private static boolean containsWhitespace(String token) {
+    for (int i = 0; i < token.length(); i++) {
+      if (Character.isWhitespace(token.charAt(i))) {
+        return true;
+      }
+    }
+    return false;
+  }
+
+  @Override
+  protected String convertString(@Nullable String token, ConvertContext 
context) {
+    if (token == null || token.isEmpty() || isLegal(token)) {
+      return token;
+    }
+    return null;
+  }
+
+  @Override
+  protected String toString(@Nullable String token) {
+    return token;
+  }
+
+  @Override
+  protected Object[] getReferenceVariants(ConvertContext context,
+                                          GenericDomValue<? extends 
List<String>> value) {
+    return ArrayUtilRt.EMPTY_OBJECT_ARRAY;
+  }
+
+  @Override
+  protected PsiElement resolveReference(@Nullable String token, ConvertContext 
context) {
+    if (token != null && (token.isEmpty() || isLegal(token))) {
+      return DomUtil.getValueElement((GenericDomValue<?>) 
context.getInvocationElement());
+    }
+    return null;
+  }
+
+  @Override
+  protected String getUnresolvedMessage(String token) {
+    return "Invalid extension '" + token + "'";
+  }
+}
diff --git 
a/src/main/java/com/intellij/struts2/dom/struts/strutspackage/ScopedConstant.java
 
b/src/main/java/com/intellij/struts2/dom/struts/strutspackage/ScopedConstant.java
new file mode 100644
index 0000000..bd77825
--- /dev/null
+++ 
b/src/main/java/com/intellij/struts2/dom/struts/strutspackage/ScopedConstant.java
@@ -0,0 +1,44 @@
+/*
+ * Copyright 2026 The authors
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.intellij.struts2.dom.struts.strutspackage;
+
+import com.intellij.ide.presentation.Presentation;
+import com.intellij.struts2.dom.struts.constant.ConstantValueConverter;
+import com.intellij.util.xml.Convert;
+import com.intellij.util.xml.DomElement;
+import com.intellij.util.xml.GenericAttributeValue;
+import com.intellij.util.xml.NameValue;
+import com.intellij.util.xml.Required;
+import com.intellij.util.xml.Stubbed;
+
+/**
+ * {@code <scoped-constant>}.
+ */
+@Stubbed
+@Presentation(typeName = "Scoped Constant", icon = "AllIcons.Nodes.Parameter")
+public interface ScopedConstant extends DomElement {
+
+  @NameValue
+  @Required
+  @Convert(ScopedConstantNameConverter.class)
+  @Stubbed
+  GenericAttributeValue<String> getName();
+
+  @Required(nonEmpty = false)
+  @Convert(ConstantValueConverter.class)
+  @Stubbed
+  GenericAttributeValue<String> getValue();
+}
diff --git 
a/src/main/java/com/intellij/struts2/dom/struts/strutspackage/ScopedConstantNameConverter.java
 
b/src/main/java/com/intellij/struts2/dom/struts/strutspackage/ScopedConstantNameConverter.java
new file mode 100644
index 0000000..fb2b8c0
--- /dev/null
+++ 
b/src/main/java/com/intellij/struts2/dom/struts/strutspackage/ScopedConstantNameConverter.java
@@ -0,0 +1,64 @@
+/*
+ * Copyright 2026 The authors
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.intellij.struts2.dom.struts.strutspackage;
+
+import com.intellij.openapi.module.Module;
+import com.intellij.struts2.model.constant.StrutsConstant;
+import com.intellij.struts2.model.constant.StrutsConstantManager;
+import com.intellij.util.containers.ContainerUtil;
+import com.intellij.util.xml.ConvertContext;
+import com.intellij.util.xml.ResolvingConverter;
+import org.jetbrains.annotations.NotNull;
+import org.jetbrains.annotations.Nullable;
+
+import java.util.Collection;
+import java.util.List;
+import java.util.Set;
+
+/**
+ * Resolves {@code <scoped-constant>} names to registered scopable constants.
+ */
+public class ScopedConstantNameConverter extends 
ResolvingConverter.StringConverter {
+
+  static final List<String> SCOPABLE_NAMES = List.of(
+      "struts.ui.theme",
+      "struts.ui.templateDir",
+      "struts.convention.result.path");
+
+  @Override
+  public String fromString(@Nullable String name, ConvertContext context) {
+    if (name == null) {
+      return null;
+    }
+    return getVariants(context).contains(name) ? name : null;
+  }
+
+  @Override
+  public @NotNull Collection<String> getVariants(@NotNull ConvertContext 
context) {
+    final Module module = context.getModule();
+    if (module == null) {
+      return List.of();
+    }
+    final StrutsConstantManager constantManager = 
StrutsConstantManager.getInstance(module.getProject());
+    final Set<String> registered = 
ContainerUtil.map2Set(constantManager.getConstants(module), 
StrutsConstant::getName);
+    return ContainerUtil.filter(SCOPABLE_NAMES, registered::contains);
+  }
+
+  @Override
+  public String getErrorMessage(@Nullable String name, ConvertContext context) 
{
+    return "Constant '" + name + "' is not scopable";
+  }
+}
diff --git 
a/src/main/java/com/intellij/struts2/dom/struts/strutspackage/StrutsPackage.java
 
b/src/main/java/com/intellij/struts2/dom/struts/strutspackage/StrutsPackage.java
index 307c09d..67f24ef 100644
--- 
a/src/main/java/com/intellij/struts2/dom/struts/strutspackage/StrutsPackage.java
+++ 
b/src/main/java/com/intellij/struts2/dom/struts/strutspackage/StrutsPackage.java
@@ -49,12 +49,17 @@ public interface StrutsPackage extends 
CommonDomModelElement {
 
   GenericAttributeValue<Boolean> getAbstract();
 
+  GenericAttributeValue<Boolean> getFinal();
+
   @Required(value = false, nonEmpty = true)
   @Stubbed
   GenericAttributeValue<String> getNamespace();
 
   GenericAttributeValue<Boolean> getStrictMethodInvocation();
 
+  @Convert(ExtensionListConverter.class)
+  GenericAttributeValue<String> getExtension();
+
   // externalReferenceResolver - deprecated
 
   /**
@@ -111,6 +116,10 @@ public interface StrutsPackage extends 
CommonDomModelElement {
   @SubTagList(value = "action")
   List<Action> getActions();
 
+  @SubTagList("scoped-constant")
+  @NotNull
+  List<ScopedConstant> getScopedConstants();
+
   /**
    * Searches the {@code default-class-ref} element for this package, walking 
up the hierarchy until one is found.
    *
diff --git a/src/main/resources/fileTemplates/j2ee/struts_6_5.xml.ft 
b/src/main/resources/fileTemplates/j2ee/struts_6_5.xml.ft
new file mode 100644
index 0000000..828e99f
--- /dev/null
+++ b/src/main/resources/fileTemplates/j2ee/struts_6_5.xml.ft
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!DOCTYPE struts PUBLIC
+  "-//Apache Software Foundation//DTD Struts Configuration 6.5//EN"
+  "https://struts.apache.org/dtds/struts-6.5.dtd";>
+
+<struts>
+</struts>
diff --git a/src/main/resources/fileTemplates/j2ee/struts_6_5.xml.html 
b/src/main/resources/fileTemplates/j2ee/struts_6_5.xml.html
new file mode 100644
index 0000000..64f4c82
--- /dev/null
+++ b/src/main/resources/fileTemplates/j2ee/struts_6_5.xml.html
@@ -0,0 +1,7 @@
+<html>
+<body style="padding: 2px;">
+<span style="font-family: verdana,sans-serif; font-size: smaller;">
+This is a built-in template used each time you create a new struts.xml for 
Struts 6.5.x
+</span>
+</body>
+</html>
diff --git a/src/main/resources/fileTemplates/j2ee/struts_7_5.xml.ft 
b/src/main/resources/fileTemplates/j2ee/struts_7_5.xml.ft
new file mode 100644
index 0000000..27e64cb
--- /dev/null
+++ b/src/main/resources/fileTemplates/j2ee/struts_7_5.xml.ft
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!DOCTYPE struts PUBLIC
+  "-//Apache Software Foundation//DTD Struts Configuration 7.5//EN"
+  "https://struts.apache.org/dtds/struts-7.5.dtd";>
+
+<struts>
+</struts>
diff --git a/src/main/resources/fileTemplates/j2ee/struts_7_5.xml.html 
b/src/main/resources/fileTemplates/j2ee/struts_7_5.xml.html
new file mode 100644
index 0000000..246b634
--- /dev/null
+++ b/src/main/resources/fileTemplates/j2ee/struts_7_5.xml.html
@@ -0,0 +1,7 @@
+<html>
+<body style="padding: 2px;">
+<span style="font-family: verdana,sans-serif; font-size: smaller;">
+This is a built-in template used each time you create a new struts.xml for 
Struts 7.5 and newer
+</span>
+</body>
+</html>
diff --git a/src/main/resources/messages/Struts2Bundle.properties 
b/src/main/resources/messages/Struts2Bundle.properties
index 39b3afd..df7023a 100644
--- a/src/main/resources/messages/Struts2Bundle.properties
+++ b/src/main/resources/messages/Struts2Bundle.properties
@@ -47,6 +47,7 @@ dom.result.path.create.file=Create file ''{0}''
 dom.result.path.create.file.family=Create JSP result file
 
 dom.highlighting.struts.package.must.start.with.slash=Namespace must start 
with '/'
+dom.highlighting.struts.package.final.parent=Parent package is final and 
unextendable: {0}
 
 inspections.group.path.name=Struts
 inspections.group.display.name=Struts 2
diff --git a/src/main/resources/resources/dtds/struts-6.5.dtd 
b/src/main/resources/resources/dtds/struts-6.5.dtd
new file mode 100644
index 0000000..6c2ef0d
--- /dev/null
+++ b/src/main/resources/resources/dtds/struts-6.5.dtd
@@ -0,0 +1,158 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+-->
+<!-- START SNIPPET: strutsDtd -->
+
+<!--
+   Struts configuration DTD.
+   Use the following DOCTYPE
+
+   <!DOCTYPE struts PUBLIC
+    "-//Apache Software Foundation//DTD Struts Configuration 6.5//EN"
+    "https://struts.apache.org/dtds/struts-6.5.dtd";>
+-->
+
+<!ELEMENT struts ((package|include|bean|constant)*,bean-selection?, 
unknown-handler-stack?)>
+<!ATTLIST struts
+    order CDATA #IMPLIED
+>
+
+<!ELEMENT package (result-types?, interceptors?, default-interceptor-ref?, 
default-action-ref?, default-class-ref?, global-results?, 
global-allowed-methods?, global-exception-mappings?, action*)>
+<!ATTLIST package
+    name CDATA #REQUIRED
+    extends CDATA #IMPLIED
+    namespace CDATA #IMPLIED
+    abstract CDATA #IMPLIED
+    final CDATA #IMPLIED
+    strict-method-invocation (true|false) "true"
+>
+
+<!ELEMENT result-types (result-type+)>
+
+<!ELEMENT result-type (param*)>
+<!ATTLIST result-type
+    name CDATA #REQUIRED
+    class CDATA #REQUIRED
+    default (true|false) "false"
+>
+
+<!ELEMENT interceptors (interceptor|interceptor-stack)+>
+
+<!ELEMENT interceptor (param*)>
+<!ATTLIST interceptor
+    name CDATA #REQUIRED
+    class CDATA #REQUIRED
+>
+
+<!ELEMENT interceptor-stack (interceptor-ref*)>
+<!ATTLIST interceptor-stack
+    name CDATA #REQUIRED
+>
+
+<!ELEMENT interceptor-ref (param*)>
+<!ATTLIST interceptor-ref
+    name CDATA #REQUIRED
+>
+
+<!ELEMENT default-interceptor-ref (#PCDATA)>
+<!ATTLIST default-interceptor-ref
+    name CDATA #REQUIRED
+>
+
+<!ELEMENT default-action-ref (#PCDATA)>
+<!ATTLIST default-action-ref
+    name CDATA #REQUIRED
+>
+
+<!ELEMENT default-class-ref (#PCDATA)>
+<!ATTLIST default-class-ref
+    class CDATA #REQUIRED
+>
+
+<!ELEMENT global-results (result+)>
+
+<!ELEMENT global-allowed-methods (#PCDATA)>
+
+<!ELEMENT global-exception-mappings (exception-mapping+)>
+
+<!ELEMENT action 
((param|result|interceptor-ref|exception-mapping)*,allowed-methods?)>
+<!ATTLIST action
+    name CDATA #REQUIRED
+    class CDATA #IMPLIED
+    method CDATA #IMPLIED
+    converter CDATA #IMPLIED
+>
+
+<!ELEMENT param (#PCDATA)>
+<!ATTLIST param
+    name CDATA #REQUIRED
+>
+
+<!ELEMENT result (#PCDATA|param)*>
+<!ATTLIST result
+    name CDATA #IMPLIED
+    type CDATA #IMPLIED
+>
+
+<!ELEMENT exception-mapping (#PCDATA|param)*>
+<!ATTLIST exception-mapping
+    name CDATA #IMPLIED
+    exception CDATA #REQUIRED
+    result CDATA #REQUIRED
+>
+
+<!ELEMENT allowed-methods (#PCDATA)>
+
+<!ELEMENT include (#PCDATA)>
+<!ATTLIST include
+    file CDATA #REQUIRED
+>
+
+<!ELEMENT bean (#PCDATA)>
+<!ATTLIST bean
+    type CDATA #IMPLIED
+    name CDATA #IMPLIED
+    class CDATA #REQUIRED
+    scope CDATA #IMPLIED
+    static CDATA #IMPLIED
+    optional CDATA #IMPLIED
+>
+
+<!ELEMENT bean-selection (#PCDATA)>
+<!ATTLIST bean-selection
+    name CDATA #IMPLIED
+    class CDATA #IMPLIED
+>
+
+<!ELEMENT constant (#PCDATA)>
+<!ATTLIST constant
+    name CDATA #REQUIRED
+    value CDATA #REQUIRED
+>
+
+<!ELEMENT unknown-handler-stack (unknown-handler-ref*)>
+<!ELEMENT unknown-handler-ref (#PCDATA)>
+<!ATTLIST unknown-handler-ref
+    name CDATA #REQUIRED
+>
+
+<!-- END SNIPPET: strutsDtd -->
+
diff --git a/src/main/resources/resources/dtds/struts-7.5.dtd 
b/src/main/resources/resources/dtds/struts-7.5.dtd
new file mode 100644
index 0000000..4abfe46
--- /dev/null
+++ b/src/main/resources/resources/dtds/struts-7.5.dtd
@@ -0,0 +1,167 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+-->
+<!-- START SNIPPET: strutsDtd -->
+
+<!--
+   Struts configuration DTD.
+   Use the following DOCTYPE
+
+   <!DOCTYPE struts PUBLIC
+    "-//Apache Software Foundation//DTD Struts Configuration 7.5//EN"
+    "https://struts.apache.org/dtds/struts-7.5.dtd";>
+-->
+
+<!ELEMENT struts ((package|include|bean|constant)*,bean-selection?, 
unknown-handler-stack?)>
+<!ATTLIST struts
+    order CDATA #IMPLIED
+>
+
+<!ELEMENT package (scoped-constant*, result-types?, interceptors?, 
default-interceptor-ref?, default-action-ref?, default-class-ref?, 
global-results?, global-allowed-methods?, global-exception-mappings?, action*)>
+<!ATTLIST package
+    name CDATA #REQUIRED
+    extends CDATA #IMPLIED
+    namespace CDATA #IMPLIED
+    abstract CDATA #IMPLIED
+    final CDATA #IMPLIED
+    strict-method-invocation (true|false) "true"
+    extension CDATA #IMPLIED
+>
+
+<!ELEMENT scoped-constant EMPTY>
+<!ATTLIST scoped-constant
+    name CDATA #REQUIRED
+    value CDATA #REQUIRED
+>
+
+<!ELEMENT result-types (result-type+)>
+
+<!ELEMENT result-type (param*)>
+<!ATTLIST result-type
+    name CDATA #REQUIRED
+    class CDATA #REQUIRED
+    default (true|false) "false"
+>
+
+<!ELEMENT interceptors (interceptor|interceptor-stack)+>
+
+<!ELEMENT interceptor (param*)>
+<!ATTLIST interceptor
+    name CDATA #REQUIRED
+    class CDATA #REQUIRED
+>
+
+<!ELEMENT interceptor-stack (interceptor-ref*)>
+<!ATTLIST interceptor-stack
+    name CDATA #REQUIRED
+>
+
+<!ELEMENT interceptor-ref (param*)>
+<!ATTLIST interceptor-ref
+    name CDATA #REQUIRED
+>
+
+<!ELEMENT default-interceptor-ref (#PCDATA)>
+<!ATTLIST default-interceptor-ref
+    name CDATA #REQUIRED
+>
+
+<!ELEMENT default-action-ref (#PCDATA)>
+<!ATTLIST default-action-ref
+    name CDATA #REQUIRED
+>
+
+<!ELEMENT default-class-ref (#PCDATA)>
+<!ATTLIST default-class-ref
+    class CDATA #REQUIRED
+>
+
+<!ELEMENT global-results (result+)>
+
+<!ELEMENT global-allowed-methods (#PCDATA)>
+
+<!ELEMENT global-exception-mappings (exception-mapping+)>
+
+<!ELEMENT action 
((param|result|interceptor-ref|exception-mapping)*,allowed-methods?)>
+<!ATTLIST action
+    name CDATA #REQUIRED
+    class CDATA #IMPLIED
+    method CDATA #IMPLIED
+    converter CDATA #IMPLIED
+    http-method CDATA #IMPLIED
+    extension CDATA #IMPLIED
+>
+
+<!ELEMENT param (#PCDATA)>
+<!ATTLIST param
+    name CDATA #REQUIRED
+>
+
+<!ELEMENT result (#PCDATA|param)*>
+<!ATTLIST result
+    name CDATA #IMPLIED
+    type CDATA #IMPLIED
+>
+
+<!ELEMENT exception-mapping (#PCDATA|param)*>
+<!ATTLIST exception-mapping
+    name CDATA #IMPLIED
+    exception CDATA #REQUIRED
+    result CDATA #REQUIRED
+>
+
+<!ELEMENT allowed-methods (#PCDATA)>
+
+<!ELEMENT include (#PCDATA)>
+<!ATTLIST include
+    file CDATA #REQUIRED
+>
+
+<!ELEMENT bean (#PCDATA)>
+<!ATTLIST bean
+    type CDATA #IMPLIED
+    name CDATA #IMPLIED
+    class CDATA #REQUIRED
+    scope CDATA #IMPLIED
+    static CDATA #IMPLIED
+    optional CDATA #IMPLIED
+>
+
+<!ELEMENT bean-selection (#PCDATA)>
+<!ATTLIST bean-selection
+    name CDATA #IMPLIED
+    class CDATA #IMPLIED
+>
+
+<!ELEMENT constant (#PCDATA)>
+<!ATTLIST constant
+    name CDATA #REQUIRED
+    value CDATA #REQUIRED
+>
+
+<!ELEMENT unknown-handler-stack (unknown-handler-ref*)>
+<!ELEMENT unknown-handler-ref (#PCDATA)>
+<!ATTLIST unknown-handler-ref
+    name CDATA #REQUIRED
+>
+
+<!-- END SNIPPET: strutsDtd -->
+
diff --git 
a/src/test/java/com/intellij/struts2/StrutsFileTemplateProviderTest.java 
b/src/test/java/com/intellij/struts2/StrutsFileTemplateProviderTest.java
new file mode 100644
index 0000000..662b2a5
--- /dev/null
+++ b/src/test/java/com/intellij/struts2/StrutsFileTemplateProviderTest.java
@@ -0,0 +1,62 @@
+/*
+ * Copyright 2026 The authors
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.intellij.struts2;
+
+import junit.framework.TestCase;
+
+import java.io.InputStream;
+import java.nio.charset.StandardCharsets;
+
+public class StrutsFileTemplateProviderTest extends TestCase {
+
+  public void testVersionMapping() {
+    assertEquals(StrutsFileTemplateGroupDescriptorFactory.STRUTS_6_0_XML,
+                 StrutsFileTemplateProvider.templateNameFor("6.0.0"));
+    assertEquals(StrutsFileTemplateGroupDescriptorFactory.STRUTS_6_0_XML,
+                 StrutsFileTemplateProvider.templateNameFor("6.4.0"));
+    assertEquals(StrutsFileTemplateGroupDescriptorFactory.STRUTS_6_0_XML,
+                 StrutsFileTemplateProvider.templateNameFor("7.4.0"));
+    assertEquals(StrutsFileTemplateGroupDescriptorFactory.STRUTS_6_5_XML,
+                 StrutsFileTemplateProvider.templateNameFor("6.5.0"));
+    assertEquals(StrutsFileTemplateGroupDescriptorFactory.STRUTS_6_5_XML,
+                 StrutsFileTemplateProvider.templateNameFor("6.6.0"));
+    assertEquals(StrutsFileTemplateGroupDescriptorFactory.STRUTS_7_5_XML,
+                 StrutsFileTemplateProvider.templateNameFor("7.5.0"));
+    assertEquals(StrutsFileTemplateGroupDescriptorFactory.STRUTS_7_5_XML,
+                 StrutsFileTemplateProvider.templateNameFor("7.6.0"));
+    assertEquals(StrutsFileTemplateGroupDescriptorFactory.STRUTS_7_5_XML,
+                 StrutsFileTemplateProvider.templateNameFor("8.0.0"));
+    assertEquals(StrutsFileTemplateGroupDescriptorFactory.STRUTS_2_0_XML,
+                 StrutsFileTemplateProvider.templateNameFor(null));
+  }
+
+  public void testTemplateDoctypes() throws Exception {
+    String struts65 = readTemplate("struts_6_5.xml.ft");
+    assertTrue(struts65.contains("-//Apache Software Foundation//DTD Struts 
Configuration 6.5//EN"));
+    
assertTrue(struts65.contains("https://struts.apache.org/dtds/struts-6.5.dtd";));
+
+    String struts75 = readTemplate("struts_7_5.xml.ft");
+    assertTrue(struts75.contains("-//Apache Software Foundation//DTD Struts 
Configuration 7.5//EN"));
+    
assertTrue(struts75.contains("https://struts.apache.org/dtds/struts-7.5.dtd";));
+  }
+
+  private static String readTemplate(String fileName) throws Exception {
+    try (InputStream in = StrutsFileTemplateProvider.class.getClassLoader()
+            .getResourceAsStream("fileTemplates/j2ee/" + fileName)) {
+      assertNotNull(fileName, in);
+      return new String(in.readAllBytes(), StandardCharsets.UTF_8);
+    }
+  }
+}
diff --git 
a/src/test/java/com/intellij/struts2/dom/inspection/StrutsDtdValidatorTest.java 
b/src/test/java/com/intellij/struts2/dom/inspection/StrutsDtdValidatorTest.java
index 8b542f8..b872b9c 100644
--- 
a/src/test/java/com/intellij/struts2/dom/inspection/StrutsDtdValidatorTest.java
+++ 
b/src/test/java/com/intellij/struts2/dom/inspection/StrutsDtdValidatorTest.java
@@ -62,6 +62,54 @@ public class StrutsDtdValidatorTest extends 
BasePlatformTestCase {
         assertEquals(StrutsDtdValidator.Result.HTTP_INSTEAD_OF_HTTPS, 
StrutsDtdValidator.validate(file));
     }
 
+    public void testValidStruts65HttpsDtdReturnsOk() {
+        XmlFile file = (XmlFile) myFixture.configureByText("struts.xml",
+                """
+                <?xml version="1.0" encoding="UTF-8" ?>
+                <!DOCTYPE struts PUBLIC
+                  "-//Apache Software Foundation//DTD Struts Configuration 
6.5//EN"
+                  "https://struts.apache.org/dtds/struts-6.5.dtd";>
+                <struts/>
+                """);
+        assertEquals(StrutsDtdValidator.Result.OK, 
StrutsDtdValidator.validate(file));
+    }
+
+    public void testValidStruts75HttpsDtdReturnsOk() {
+        XmlFile file = (XmlFile) myFixture.configureByText("struts.xml",
+                """
+                <?xml version="1.0" encoding="UTF-8" ?>
+                <!DOCTYPE struts PUBLIC
+                  "-//Apache Software Foundation//DTD Struts Configuration 
7.5//EN"
+                  "https://struts.apache.org/dtds/struts-7.5.dtd";>
+                <struts/>
+                """);
+        assertEquals(StrutsDtdValidator.Result.OK, 
StrutsDtdValidator.validate(file));
+    }
+
+    public void testHttpInsteadOfHttpsForStruts65ReturnsWarning() {
+        XmlFile file = (XmlFile) myFixture.configureByText("struts.xml",
+                """
+                <?xml version="1.0" encoding="UTF-8" ?>
+                <!DOCTYPE struts PUBLIC
+                  "-//Apache Software Foundation//DTD Struts Configuration 
6.5//EN"
+                  "http://struts.apache.org/dtds/struts-6.5.dtd";>
+                <struts/>
+                """);
+        assertEquals(StrutsDtdValidator.Result.HTTP_INSTEAD_OF_HTTPS, 
StrutsDtdValidator.validate(file));
+    }
+
+    public void testHttpInsteadOfHttpsForStruts75ReturnsWarning() {
+        XmlFile file = (XmlFile) myFixture.configureByText("struts.xml",
+                """
+                <?xml version="1.0" encoding="UTF-8" ?>
+                <!DOCTYPE struts PUBLIC
+                  "-//Apache Software Foundation//DTD Struts Configuration 
7.5//EN"
+                  "http://struts.apache.org/dtds/struts-7.5.dtd";>
+                <struts/>
+                """);
+        assertEquals(StrutsDtdValidator.Result.HTTP_INSTEAD_OF_HTTPS, 
StrutsDtdValidator.validate(file));
+    }
+
     public void testHttpInsteadOfHttpsForStrutsLikeDtdReturnsWarning() {
         XmlFile file = (XmlFile) myFixture.configureByText("struts.xml",
                 """
diff --git 
a/src/test/java/com/intellij/struts2/dom/struts/StrutsCompletionTest.java 
b/src/test/java/com/intellij/struts2/dom/struts/StrutsCompletionTest.java
index 10fb76e..c8ee85a 100644
--- a/src/test/java/com/intellij/struts2/dom/struts/StrutsCompletionTest.java
+++ b/src/test/java/com/intellij/struts2/dom/struts/StrutsCompletionTest.java
@@ -111,4 +111,19 @@ public class StrutsCompletionTest extends 
StrutsLightHighlightingTestCase {
     
performCompletionVariantTest("struts-completionvariants-multipart_parser_value.xml",
                                  "cos", "jakarta", "jakarta-stream", "pell");
   }
-}
\ No newline at end of file
+
+  public void testCompletionVariantsScopedConstantName() {
+    
performCompletionVariantTest("struts-completionvariants-scoped-constant-name.xml",
+                                 "struts.ui.templateDir", "struts.ui.theme");
+  }
+
+  public void testCompletionVariantsScopedConstantThemeValue() {
+    
performCompletionVariantTest("struts-completionvariants-scoped-constant-theme-value.xml",
+                                 "ajax", "css_xhtml", "html5", "simple", 
"xhtml");
+  }
+
+  public void testCompletionVariantsHttpMethod() {
+    performCompletionVariantTest("struts-completionvariants-http-method.xml",
+                                 "CONNECT", "DELETE", "GET", "HEAD", 
"OPTIONS", "PATCH", "POST", "PUT", "TRACE");
+  }
+}
diff --git 
a/src/test/java/com/intellij/struts2/dom/struts/StrutsHighlightingTest.java 
b/src/test/java/com/intellij/struts2/dom/struts/StrutsHighlightingTest.java
index b9ea5b9..7ac74f2 100644
--- a/src/test/java/com/intellij/struts2/dom/struts/StrutsHighlightingTest.java
+++ b/src/test/java/com/intellij/struts2/dom/struts/StrutsHighlightingTest.java
@@ -86,4 +86,20 @@ public class StrutsHighlightingTest extends 
StrutsLightHighlightingTestCase {
     performHighlightingTest("struts-dtd-https.xml");
   }
 
-}
\ No newline at end of file
+  public void testFinalPackageParent() {
+    performHighlightingTest("struts-package-final.xml");
+  }
+
+  public void testScopedConstantName() {
+    performHighlightingTest("struts-scoped-constant.xml");
+  }
+
+  public void testHttpMethod() {
+    performHighlightingTest("struts-http-method.xml");
+  }
+
+  public void testExtensionTokens() {
+    performHighlightingTest("struts-extension.xml");
+  }
+
+}
diff --git 
a/src/test/testData/strutsXml/completion/struts-completionvariants-http-method.xml
 
b/src/test/testData/strutsXml/completion/struts-completionvariants-http-method.xml
new file mode 100644
index 0000000..acf6efe
--- /dev/null
+++ 
b/src/test/testData/strutsXml/completion/struts-completionvariants-http-method.xml
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+
+<!DOCTYPE struts PUBLIC
+    "-//Apache Software Foundation//DTD Struts Configuration 7.5//EN"
+    "https://struts.apache.org/dtds/struts-7.5.dtd";>
+
+<struts>
+  <package name="web">
+    <action name="save" http-method="<caret>"/>
+  </package>
+</struts>
diff --git 
a/src/test/testData/strutsXml/completion/struts-completionvariants-scoped-constant-name.xml
 
b/src/test/testData/strutsXml/completion/struts-completionvariants-scoped-constant-name.xml
new file mode 100644
index 0000000..dfb3ee2
--- /dev/null
+++ 
b/src/test/testData/strutsXml/completion/struts-completionvariants-scoped-constant-name.xml
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+
+<!DOCTYPE struts PUBLIC
+    "-//Apache Software Foundation//DTD Struts Configuration 7.5//EN"
+    "https://struts.apache.org/dtds/struts-7.5.dtd";>
+
+<struts>
+  <package name="ui">
+    <scoped-constant name="<caret>" value=""/>
+  </package>
+</struts>
diff --git 
a/src/test/testData/strutsXml/completion/struts-completionvariants-scoped-constant-theme-value.xml
 
b/src/test/testData/strutsXml/completion/struts-completionvariants-scoped-constant-theme-value.xml
new file mode 100644
index 0000000..4b96600
--- /dev/null
+++ 
b/src/test/testData/strutsXml/completion/struts-completionvariants-scoped-constant-theme-value.xml
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+
+<!DOCTYPE struts PUBLIC
+    "-//Apache Software Foundation//DTD Struts Configuration 7.5//EN"
+    "https://struts.apache.org/dtds/struts-7.5.dtd";>
+
+<struts>
+  <package name="ui">
+    <scoped-constant name="struts.ui.theme" value="<caret>"/>
+  </package>
+</struts>
diff --git a/src/test/testData/strutsXml/highlighting/struts-extension.xml 
b/src/test/testData/strutsXml/highlighting/struts-extension.xml
new file mode 100644
index 0000000..310c80f
--- /dev/null
+++ b/src/test/testData/strutsXml/highlighting/struts-extension.xml
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+
+<!DOCTYPE struts PUBLIC
+    "-//Apache Software Foundation//DTD Struts Configuration 7.5//EN"
+    "https://struts.apache.org/dtds/struts-7.5.dtd";>
+
+<struts>
+  <package name="web" extension="action,<error descr="Invalid extension 
'.do'">.do</error>,<error descr="Invalid extension 'a/b'">a/b</error>,<error 
descr="Invalid extension 'x y'">x y</error>,">
+    <action name="plain" extension=","/>
+  </package>
+</struts>
diff --git a/src/test/testData/strutsXml/highlighting/struts-http-method.xml 
b/src/test/testData/strutsXml/highlighting/struts-http-method.xml
new file mode 100644
index 0000000..7ac0959
--- /dev/null
+++ b/src/test/testData/strutsXml/highlighting/struts-http-method.xml
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+
+<!DOCTYPE struts PUBLIC
+    "-//Apache Software Foundation//DTD Struts Configuration 7.5//EN"
+    "https://struts.apache.org/dtds/struts-7.5.dtd";>
+
+<struts>
+  <package name="web">
+    <action name="save" http-method="post,<error descr="Cannot resolve 
http-method 'FOO'">FOO</error>"/>
+  </package>
+</struts>
diff --git a/src/test/testData/strutsXml/highlighting/struts-package-final.xml 
b/src/test/testData/strutsXml/highlighting/struts-package-final.xml
new file mode 100644
index 0000000..6514812
--- /dev/null
+++ b/src/test/testData/strutsXml/highlighting/struts-package-final.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+
+<!DOCTYPE struts PUBLIC
+    "-//Apache Software Foundation//DTD Struts Configuration 7.5//EN"
+    "https://struts.apache.org/dtds/struts-7.5.dtd";>
+
+<struts>
+  <package name="open"/>
+  <package name="locked" final="true"/>
+  <package name="child" extends="open"/>
+  <package name="blocked" extends="<error descr="Parent package is final and 
unextendable: locked">locked</error>"/>
+</struts>
diff --git 
a/src/test/testData/strutsXml/highlighting/struts-scoped-constant.xml 
b/src/test/testData/strutsXml/highlighting/struts-scoped-constant.xml
new file mode 100644
index 0000000..39ef20e
--- /dev/null
+++ b/src/test/testData/strutsXml/highlighting/struts-scoped-constant.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+
+<!DOCTYPE struts PUBLIC
+    "-//Apache Software Foundation//DTD Struts Configuration 7.5//EN"
+    "https://struts.apache.org/dtds/struts-7.5.dtd";>
+
+<struts>
+  <package name="ui">
+    <scoped-constant name="struts.ui.theme" value="html5"/>
+    <scoped-constant name="<error descr="Constant 'struts.devMode' is not 
scopable">struts.devMode</error>" value="true"/>
+  </package>
+</struts>

Reply via email to