• 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
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

Maintaining struts-config.xml or faces-config.xml

 
Ranch Hand
Posts: 264
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

While using Struts or JSF, the navigation rules would be defined in struts-config.xml or faces-config.xml. The question is, as the number of user screens increase, the files tend to too long. Is there a standard way of maintaining these files? (is it possible to split the files and use include statements to refer to other xml files?)

Dushy
 
pie sneak
Posts: 4727
Mac VI Editor Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can make multiple xml files and then in your web.xml be sure to list them all (comma-separated) under the param-name of config which should already exist.
 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think you can move all the forms to a separate xml file and then can just put a reference of that in struts-config xml, similarly all the mappings also can be maintained in the same way.

Hope this helps.
 
Author
Posts: 64
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Dushy,

I've created two GUI tools for helping with the management of the Struts and JavaServer Faces configuration files:

Struts Console
http://www.jamesholmes.com/struts/

Faces Console
http://www.jamesholmes.com/JavaServerFaces/

Both of these tools simplify working with large files.

Hope that helps,

James
 
Mathur Neni
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It's very nice with the information and the examples for the approaches.

I hope this should help Dushy?

Thanks for the second URL, which is helpful for me, as I am naive to JSF.
 
Dushy Inguva
Ranch Hand
Posts: 264
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Marc, James, Mathur,

Now i can be pretty less paranoid about maintaining my xml config files

Dushy
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic