'Change Error message of Struts token resubmission action page error
<action name="manual_order" class="materialTypeMasterAction" method="enquiry_process">
<interceptor-ref name="token"></interceptor-ref>
<interceptor-ref name="defaultStack"></interceptor-ref>
<result name="success">/pages/procurement/EnquiryDetails.jsp</result>
<result name="invalid.token">/pages/procurement/EnquiryDetails.jsp</result>
</action>
I would like to change this invalid.token error message. Where can I change that message.
Solution 1:[1]
The message resource keys for invalid.token are
struts.messages.invalid.token=The form has already been processed or no token was supplied, please try again.
struts.internal.invalid.token=Form token {0} does not match the session token {1}.
You can use this message keys to change the invalid.token messages.
Solution 2:[2]
You can see a list of struts.messages in struts here. Only modify the struts-messages.properties.
struts.messages.invalid.token=The form has already been processed or no token was supplied, please try again.
struts.internal.invalid.token=Form token {0} does not match the session token {1}.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | |
| Solution 2 |
