WW-5416 fix: restore default struts.action.extension in examples (#541)

* WW-5416 docs: design for action.extension 404 fix

Design doc for restoring the framework-default struts.action.extension
in helloworld, text-provider, and sitemesh3 so documented .action URLs
no longer return 404.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* WW-5416 docs: implementation plan for action.extension 404 fix

Task-by-task plan to remove the struts.action.extension override in
helloworld, text-provider, and sitemesh3.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* WW-5416 fix(helloworld): restore default struts.action.extension

Removing the ',' override restores the framework default 'action,,' so
the documented .action URLs return 200 instead of 404.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* WW-5416 fix(text-provider): restore default struts.action.extension

Removing the ',' override restores the framework default 'action,,' so
.action URLs no longer 404.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* WW-5416 fix(sitemesh3): restore default struts.action.extension

Removing the empty-string override restores the framework default
'action,,' so .action URLs no longer 404.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
5 files changed
tree: 361d0c25deb7f56cd22fb4d929857f648c29c891
  1. .github/
  2. .mvn/
  3. action-chaining/
  4. annotations/
  5. basic-struts/
  6. bean-validation/
  7. blank/
  8. coding-actions/
  9. control-tags/
  10. crud/
  11. debugging-struts/
  12. docs/
  13. dynamic-href/
  14. exception-handling/
  15. exclude-parameters/
  16. expression-cache/
  17. file-upload/
  18. form-processing/
  19. form-tags/
  20. form-validation/
  21. form-xml-validation/
  22. helloworld/
  23. http-session/
  24. interceptors/
  25. jasperreports/
  26. jfreechart/
  27. json/
  28. json-customize/
  29. mailreader2/
  30. message-resource/
  31. message-store/
  32. preparable-interface/
  33. quarkus/
  34. rest-angular/
  35. restful2actionmapper/
  36. shiro-basic/
  37. sitemesh3/
  38. spring-struts/
  39. src/
  40. struts-parameter/
  41. text-provider/
  42. themes/
  43. themes-override/
  44. tiles/
  45. type-conversion/
  46. unit-testing/
  47. unknown-handler/
  48. using-tags/
  49. validation-messages/
  50. wildcard-method-selection/
  51. wildcard-regex/
  52. .asf.yaml
  53. .gitignore
  54. mvnw
  55. mvnw.cmd
  56. pom.xml
  57. README.md
README.md

Struts Examples

Build Status @ ASF Build Status @ GH Actions License

This Maven multi-module project contains all the Struts 2 example applications that are part of the Getting Started Struts 2 tutorials at http://struts.apache.org.

To build all the example applications run the Maven command:

mvn -e clean package

In the project's root folder, Maven will build each module and create a .war file in the target sub-folder of each module.

You can then copy the .war files to your Servlet container (e.g. Tomcat, Jetty, GlassFish, etc).

There is a README file in each module with instructions and the URL to view that application.

Older versions

The examples are using the latest Struts version, if you are looking for older versions please take a look on the Releases page.