• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

struts config

 
raj joe
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 96
Scala Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic