Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.0.11.1
-
None
Description
In the Type Conversion Guide page (http://struts.apache.org/2.x/docs/type-conversion.html) it doesn't make it clear where to put a Class specific property file.
It looks like what is there is a copy of the javadocs from com.opensymphony.xwork2.util.XWorkConverter.
This is what's on the XWork Wiki (http://www.opensymphony.com/xwork/wikidocs/XWork%20Conversion.html) :
To create an action-level conversion, create a file called 'ActionClassName-conversion.properties' in the same location at the classpath where the Action class itself resides. Eg. if the action class name is MyAction, the action-level convertion properties file should be named 'MyAction-conversion.properties'.
This is a little better but I would make it clearer by adding something like this:
Eg. If the Action class is 'com.myapp.actions.MyAction' then the action-level conversion properties file should be named 'MyAction-conversion.properties' and put in com/myapp/actions.
This would help new people struggling to make sense of where all the various configuration files should go.
I hope that this is the right forum to post documentation suggestions. If not, happy to post elsewhere.