wood burning stoves 2.0*
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


Win a copy of Java 8 in Action this week in the Java 8 forum!
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).
 
Don't get me started about those stupid light bulbs.
 
subject: struts config
 
Similar Threads
is Validator can be configured as Module config ?
I NEED TO DISPLAY A RESULTSET IN A JSP CORE TAG
The page will go to main.jsp even user don't input username?
Struts1.3 tiles problem
Dynamic drop down in struts