The standard extension in Struts 2 for action name is .action
. But it's configurable via using a setting struts.action.extension
. It's available in the default.properties
, which is used by the default action mapper.
You might use a comma separated list, e.g. struts.action.extension=action,xml,whatsoever
The blank extension used to map directories treated as action names. Static content is mapped via specifying a blank extension, e.g. struts.action.extension=
, or struts.action.extension=a,b,c,,
, or struts.action.extension=a,,b,c
.