• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

More than one Struts-Config.xml File

 
Maneesh Chauahn
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I have one question on the struts-config.xml as i am reading a article on the struts and found the concept of the strut modules means a developer can define more than struts-config.xml file .

Can any please let me know what is the advantage of using more than one struts-config.xml file in the application

Thanks in advance for your prompt answers...

Maneesh
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Splitting up an application into more than one module is useful mainly for large projects with many developers working on them. If the struts-config file is broken up into separate files for each module, the developers responsible for working on that module can have a degree of autonomy. They can make whatever changes necessary to their module without stepping on changes being made to other modules.
 
Yogendra Joshi
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As Merrill Suggested , She is absolutely correct.

Apart from that , it also becomes way too easy for a developer to Manage the complete config file. So 1 its useful when the project is big and different developers can work on their own struts-config file and 2 for Managing the File elegantly.

Regards ,
Yogendra Joshi.
 
Deepak Tewari
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
one thing also i would like to add if we have two modules and both of them do not communicate much with each other both can be developed independently and at the end of the development while integration testing of the whole application both of the modules can be merged and separate struts config
means easy to maintain, and debug
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yogendra,

Thanks for your post, but please be aware that Merrill is a "he" rather than a "she".


Merrill
 
Claudio Sosa
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Im using multiple struts-config files by modules, but at the time i want to use one module in a form tag <html:form action="/module1/action1.do" ....> i get an error, the application could not find an action config for /module1/action1

can you please help me to solve this issue?

i already configured web.xml to manage multiple struts config files.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic