I have some questions about where to put xml files in Struts2.
To begin with the two basic files struts and web xml.
-web.xml goes into webapp/WEB-INF and there is no problem with that one;
-struts.xml is recommended to be at webapp/WEB-INF/classes (so it will end up at the WAR).
But in many occasions the struts.xml is at src/main/resources.
I can make my struts only work when the xml-file is at classes!
My first question is how to make the struts to pickup the struts.xml at src/main/resources (in eclipse)?
No comments:
Post a Comment