| Author |
Maintaining struts-config.xml or faces-config.xml
|
Dushy Inguva
Ranch Hand
Joined: Jun 24, 2003
Posts: 264
|
|
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
|
SJCP, SCBCD, SJCD, SCDJWS, SCEA (Part I)
|
 |
Marc Peabody
pie sneak
Sheriff
Joined: Feb 05, 2003
Posts: 4695
|
|
|
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.
|
A good workman is known by his tools.
|
 |
Mathur Neni
Ranch Hand
Joined: May 10, 2004
Posts: 33
|
|
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
Joined: Jan 06, 2004
Posts: 64
|
|
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
Joined: May 10, 2004
Posts: 33
|
|
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
Joined: Jun 24, 2003
Posts: 264
|
|
Thanks Marc, James, Mathur, Now i can be pretty less paranoid about maintaining my xml config files Dushy
|
 |
 |
|
|
subject: Maintaining struts-config.xml or faces-config.xml
|
|
|