What is the difference between struts.xml and struts-config.xml....is both are same or is there any difference
+2
A:
The core configuration file for the Struts framework is by default the struts.xml
for Struts 2 and struts-config.xml
for Struts 1.
They are both configuration files so that is the same, but they are different beasts because they refer to different versions of the Struts framework.
There are large differences between Struts 1 and 2 as you can see here.
The files have different structure and content so you can't really compare one with the other (except for their purpose).
dpb
2010-06-07 10:45:34
+1
A:
They are the basically the same file, where you configure your struts actions etc. but for different versions of struts. struts-config.xml in struts 1 and struts.xml in struts 2.
krock
2010-06-07 10:46:17