Re: Conversion error message
Prasanth <[email protected]> Wed, 5 Mar 2025 09:18:55 -0600
| Newsgroups | gmane.comp.jakarta.struts.user |
|---|---|
| Message-ID | <[email protected]> |
They are, see below. Should I not be using com.opensymphony.xwork2.validator.annotations.ConversionErrorFieldValidator to set the message. This is not the class in com.opensymphony.xwork2.validator.validators with the same name. Thanks, Prasanth On 3/5/25 12:37 AM, Lukasz Lenart wrote: > wt., 4 mar 2025 o 20:35 Prasanth<[email protected]> napisał(a): >> I have the below line in the xxxxAction.properties file and it in the WEB-INF/classes folder in the sample package as the actual action class. But I am getting the standard error message rather than >> the custom one. > The file must be in the same "package"/folder as the Java class, see > this example > https://github.com/apache/struts-examples/blob/main/type-conversion/src/main/java/org/apache/struts/example/NumberAction.java > https://github.com/apache/struts-examples/blob/main/type-conversion/src/main/resources/org/apache/struts/example/NumberAction.properties > > and the name must match the action name > > > Regards > Łukasz > > --------------------------------------------------------------------- > To unsubscribe, e-mail:[email protected] > For additional commands, e-mail:[email protected] > >