Re: Conversion error message

Lukasz Lenart <[email protected]> Wed, 5 Mar 2025 07:37:09 +0100
Newsgroups gmane.comp.jakarta.struts.user
Message-ID <CAMopvkMa+FUiJtu=3uR=AYbrii224S6smJ4h=Dyqq5pt5CotYA@mail.gmail.com>
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