File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes struts config Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts config" Watch "struts config" New topic
Author

struts config

raj joe
Ranch Hand

Joined: Mar 17, 2005
Posts: 99
I have more than 300 jsp and lots of associated actions.
I find that struts config file is getting very large and un managable.

What do i do?can i have multiple struts config files ,else.....
Kaiser Lautern
Greenhorn

Joined: May 11, 2005
Posts: 18
Sure. You can configure your application in different modules and then switch among them using the SwitchAction. you can find more about it in http://struts.apache.org/struts-core/userGuide/configuration.html (item 5.3)

Kaiser
raj joe
Ranch Hand

Joined: Mar 17, 2005
Posts: 99
Originally posted by Kaiser Lautern:
Sure. You can configure your application in different modules and then switch among them using the SwitchAction. you can find more about it in http://struts.apache.org/struts-core/userGuide/configuration.html (item 5.3)

Kaiser


Kaiser
Thanks for the info.
But still there would be only one struts config.xml that would contain all forwards,forms and actions declartions.

Can i have multiple struts config.xml.ie for different URL patterns can i initialize ActionServlet to pick by diffrent struts config.xml files
Samuel Cox
Ranch Hand

Joined: Nov 16, 2004
Posts: 96

Raj, I think you need to read section 5.3 of that link again. It tells you that you can have your application broken up into modules. Each of which would have its own configuration file (5.3.2 gives an example of multiple config files specified in web.xml).
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: struts config