Migrate to Struts 2.x from Struts 1.x
Recipe ID
org.openrewrite.java.struts.migrate2.MigrateStruts2Artifact
org.openrewrite.recipe:rewrite-strutsComprehensive migration from Struts 1.x to Struts 2.x framework.
Usage
This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.
mod run . --recipe org.openrewrite.java.struts.migrate2.MigrateStruts2If the recipe isn’t available locally, install it with:
mod config recipes jar install org.openrewrite.recipe:rewrite-struts:0.26.4Definition
This recipe runs the following recipes in order.
- Remove a Gradle or Maven dependency
org.openrewrite.java.dependencies.RemoveDependency - Remove a Gradle or Maven dependency
org.openrewrite.java.dependencies.RemoveDependency - Remove a Gradle or Maven dependency
org.openrewrite.java.dependencies.RemoveDependency - Remove a Gradle or Maven dependency
org.openrewrite.java.dependencies.RemoveDependency - Remove a Gradle or Maven dependency
org.openrewrite.java.dependencies.RemoveDependency - Add Gradle or Maven dependency
org.openrewrite.java.dependencies.AddDependency - Add Gradle or Maven dependency
org.openrewrite.java.dependencies.AddDependency - Migrate Struts 1 Action to Struts 2 ActionSupport
org.openrewrite.java.struts.migrate2.MigrateActionClass - Migrate
struts-config.xmltostruts.xmlorg.openrewrite.java.struts.migrate2.MigrateStrutsConfig - Migrate web.xml from Struts 1 to Struts 2
org.openrewrite.java.struts.migrate2.MigrateWebXml - Migrate Struts 1 JSP tags to Struts 2
org.openrewrite.java.struts.migrate2.MigrateJspTags - Migrate JSP taglib directives for Struts 2
org.openrewrite.java.struts.migrate2.MigrateJspTaglib
Data tables
Structured output this recipe can produce.
- Source files that had resultsSource files that were modified by the recipe run.
org.openrewrite.table.SourcesFileResults - Source files that had search resultsSearch results that were found during the recipe run.
org.openrewrite.table.SearchResults - Source files that errored on a recipeThe details of all errors produced by a recipe run.
org.openrewrite.table.SourcesFileErrors - Recipe performanceStatistics used in analyzing the performance of recipes.
org.openrewrite.table.RecipeRunStats