• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

More than one Struts-Config.xml File

 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yogendra,

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


Merrill
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic