Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Dushy Inguva
Ranch Hand
Posts: 264
  • Mark post as helpful
  • send pies
  • 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
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • 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.
 
Mathur Neni
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • 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.
 
James Holmes
Author
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • Quote
  • Report post to moderator
Thanks Marc, James, Mathur,

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

Dushy
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic