struts2 では、アクション名にスペースを含めることはできますか?
RegexPatternMatcher を使用しています
<constant name="struts.patternMatcher" value="regex"/>
<constant name="struts.enable.SlashesInActionNames" value="true"/>
<constant name="struts.mapper.alwaysSelectFullNamespace" value="false"/>
私の行動は次のように定義されます
<action name="/users/{username}"
method="execute"
class="com.test.UserAction">
<result name="success" type="tiles">.test.user</result>
</action>
のようなURLを試してみると、http://localhost:8080/users/a%20space
a%20space がモデルのaspaceとして設定されています。%20 はエスケープされず、単に削除されます。私も試しましhttp://localhost:8080/users/a+space
たが、同じことが起こります。
環境 Struts2 バージョン、2.3.15.1