Hi...I need to know...where we have to place the struts.xml file...Is there any possibilities of changing the location of struts.xml file
+1
A:
By default, it is looked for in the classpath's root level.
Place yours directly under WEB-INF/classes
(or to a place where someone/something grabs it and puts it there, typically the root of a source folder, such as src/main/resources
if you are using Maven).
Another option would be to have it packaged at the root level of a JAR in your WEB-INF/lib
. A struts.xml in WEB-INF/classes
gets precedence though. I have yet to come across an example where this option would make sense though.
Lauri Lehtinen
2010-06-07 07:02:40
A:
If I place it somewhere other than folders you have mentioned above....how the application will identify the location struts.xml file...
Give this commenting feature a try. I'm curious, why do you wish to deviate from using the standard location?
Lauri Lehtinen
2010-06-07 07:09:08
A:
Can we be able to change the name of the struts.xml file....Is there any differnence between struts.xml and struts-config.xml
Instead of posting answers, edit your original question or use comments. Struts itself will look for a struts.xml. In struts.xml, you are free to import additional configuration files, named as you wish.
Lauri Lehtinen
2010-06-07 07:21:26