struts 2+springでフレームファイル名の書き方を検証します.


正しい書き方は:       クラス名-アクション名-validations.xml
説明`
1‘クラス名はbean名ではありません.struts.xmlのactionタグの中でclassで指定されたbean名を書かないでください.2‘action’という名前のnameで指定された名前は、methodで指定された方法名を書かないでください.
struts.xml中
<action name="UpdateUser"
method="update">
<result name="success" type="redirectAction">UserManage</result>
<result name="input">/Manage/UserEdit.jsp</result>
</action>
application.xml 
<bean id="UserManageAction">
<property name="userServices">
<ref bean="UserServices" />
</property>
</bean>
 
cn.abcd.actionパッケージの下でUserManage-UpdateUser-validations.xmlファイルを作成します.