wood burning stoves 2.0*
The moose likes Struts and the fly likes Multiple Struts config file and file name Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Multiple Struts config file and file name" Watch "Multiple Struts config file and file name" New topic
Author

Multiple Struts config file and file name

Supri dharshni
Greenhorn

Joined: Jul 14, 2009
Posts: 25
Hi,

In struts if we are using the two struts-config.xml files then if you send or received any request or response then is it search for all the xml files?
Can we have any names for my struts configuration file say supri.xml or is it only struts-config.xml?
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Config files are loaded at app startup, not at request time--so there's no "searching the XML files" upon getting a request. Config files can be named anything, otherwise having multiple config files would be more difficult, since only one file can have a particular name.
 
Consider Paul's rocket mass heater.
 
subject: Multiple Struts config file and file name
 
Similar Threads
forwards in struts
Struts UI layer + Spring Business layer Integration ?
web.xml and struts-config.xml
Accessing class files in a JAR file with struts application.
struts doubts