aspose file tools*
The moose likes Struts and the fly likes how to organize my  struts-config.xml? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "how to organize my  struts-config.xml?" Watch "how to organize my  struts-config.xml?" New topic
Author

how to organize my struts-config.xml?

shah rah
Ranch Hand

Joined: Jan 04, 2007
Posts: 124
Is there any other way I can organize my struts-config.xml without using the module feature?

I have two process in my application. Like a part that totally deals with Add/update/Search Employee. Another part that deals with Add/update/Search Departments. How do I organize my struts-config.xml, if I am not using module feature?

The reason being that I have started my application without the module level struts-config.xml and I don't want to rewrite my project using modular config files.(may be will use the feature in my next project..)
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
If neatness is all you're after, just put in comments:



As I see it, splitting configuration information into more than one config file creates more confusion than it solves. Even if you do have more than one developer working on the project, simply using good source control management software can keep you from overwriting each other's changes.


Merrill
Consultant, Sima Solutions
Brent Sterling
Ranch Hand

Joined: Feb 08, 2006
Posts: 948
Merrill's suggestion is about all that I can think of and it is the basic technique that I have used. You still will have to put your form definitions towards the top in your form-beans section and your action definitions in the action-mappings section as this is dictated by the DTD.

- Brent
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to organize my struts-config.xml?
 
Similar Threads
IDE/Editor and STRUTS - Sue?
about struts
genuine question about Struts(Scalability)
not able to run jsp's using struts
Auto Register Struts Module Config