• 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

struts config

 
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.....
 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 96
Scala VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic