In Struts 2, is it required putting the struts.xml file under source directory (src)? How to put the file under WEB-INF directory?
What's the point of difference between two locations, source directory and WEB-INF?
PM Me If You Want to get Urgent Help on Java Programming
In Struts, struts.xml file should reside on the classpath of the webapp (generally /WEB-INF/classes).
If you are using eclipse and putting struts.xml file in the src folder then at deployement it will
go into the web-inf/classes folder.
It is advisable to put the xml file in the web-inf/classes and its standard.Apart from
that if the file is in the classpath struts will find the config file.