diff --git a/CLAUDE.md b/CLAUDE.md index 5f338f789a..a536f59d06 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -165,10 +165,9 @@ When running tests, use this priority order: ### Specialized Agents - `security-analyzer` - OGNL injection scanning, CVE detection -- `test-runner` - Maven test execution and coverage analysis +- `test-runner` - Maven test execution and coverage analysis, use this agent to RUN the tests - `code-quality-checker` - JavaDoc compliance, pattern consistency - `config-validator` - struts.xml validation, interceptor analysis -- `jakarta-migration-helper` - Jakarta EE migration assistance - `codebase-analyzer` - Project structure and architecture analysis - `codebase-locator` - Code and file location assistance - `codebase-pattern-finder` - Pattern examples and usage diff --git a/apps/showcase/src/main/java/org/apache/struts2/showcase/action/Html5Action.java b/apps/showcase/src/main/java/org/apache/struts2/showcase/action/Html5Action.java new file mode 100644 index 0000000000..a4e6b2d7d2 --- /dev/null +++ b/apps/showcase/src/main/java/org/apache/struts2/showcase/action/Html5Action.java @@ -0,0 +1,32 @@ +/* + * 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. + */ +package org.apache.struts2.showcase.action; + +import org.apache.struts2.ActionSupport; + +public class Html5Action extends ActionSupport { + + @Override + public String execute() throws Exception { + addActionError("Action error: only html5"); + addActionMessage("Action message: only html5"); + addFieldError("testField", "Field error: only html5"); + return super.execute(); + } +} diff --git a/apps/showcase/src/main/resources/struts.xml b/apps/showcase/src/main/resources/struts.xml index 1b57083b33..5c1cf37ff8 100644 --- a/apps/showcase/src/main/resources/struts.xml +++ b/apps/showcase/src/main/resources/struts.xml @@ -160,6 +160,12 @@ + + + /WEB-INF/html5/index.jsp + + + diff --git a/apps/showcase/src/main/webapp/WEB-INF/decorators/main.jsp b/apps/showcase/src/main/webapp/WEB-INF/decorators/main.jsp index b2eeaca629..e5b644ad4b 100644 --- a/apps/showcase/src/main/webapp/WEB-INF/decorators/main.jsp +++ b/apps/showcase/src/main/webapp/WEB-INF/decorators/main.jsp @@ -180,6 +180,9 @@ Component Tag Example
  • Action Tag Example
  • +
  • Html 5 theme