You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Peter Doyle <pe...@teomedia.com> on 2001/01/29 13:23:03 UTC

struts-config too large

Hi,
 How can I divide struts-config into a number of smaller xml files??
The struts-config for the application Im developing is now at 400+ lines.
This is too large to manage and will only get bigger.
It does not make sense to divide the application into multiple smaller apps
so I need to make the config file more manageable.

Thanks,
Peter



Re: struts-config too large

Posted by "Steven D. Wilkinson" <st...@acm.org>.
My understanding is that you would need to extend the ActionServlet, pass
multiple entries for each of the files as init-parameters to the ActionServlet
and rewrite the initDigester() method.  You will also need to create new DTDs
and rebundle the struts.jar.  The reason for the rebundle of the struts.jar is
because of validation by the Digester  (not sure on this part).  I would guess
that if you turned that off you would not need validation, but I'm not sure
about the ramifications of that.

Hope that helps.

Steve



Peter Doyle wrote:
> 
> Hi,
>  How can I divide struts-config into a number of smaller xml files??
> The struts-config for the application Im developing is now at 400+ lines.
> This is too large to manage and will only get bigger.
> It does not make sense to divide the application into multiple smaller apps
> so I need to make the config file more manageable.
> 
> Thanks,
> Peter

Re: struts-config too large

Posted by "Steven D. Wilkinson" <st...@acm.org>.
Very nice.  Thanks Martin.  I had seen this on the Ant list, but had not thought
of that.

Martin Cooper wrote:
> 
> You can manage it using standard XML techniques. The oft-repeated example on
> this list comes from the Ant build tool. The FAQ item for that is:
> 
> http://jakarta.apache.org/jyve-faq/Turbine/screen/DisplayQuestionAnswer/acti
> on/SetAll/project_id/2/faq_id/16/topic_id/196/question_id/752
> 
> Hope this helps.
> 
> --
> Martin Cooper
> Tumbleweed Communications
> 
> ----- Original Message -----
> From: "Peter Doyle" <pe...@teomedia.com>
> To: <st...@jakarta.apache.org>
> Sent: Monday, January 29, 2001 4:23 AM
> Subject: struts-config too large
> 
> > Hi,
> >  How can I divide struts-config into a number of smaller xml files??
> > The struts-config for the application Im developing is now at 400+ lines.
> > This is too large to manage and will only get bigger.
> > It does not make sense to divide the application into multiple smaller
> apps
> > so I need to make the config file more manageable.
> >
> > Thanks,
> > Peter
> >
> >

-- 
-----------------------------------------------------------------
Steven D. Wilkinson, stevendwilkinson@acm.org

Re: struts-config too large

Posted by Martin Cooper <ma...@tumbleweed.com>.
You can manage it using standard XML techniques. The oft-repeated example on
this list comes from the Ant build tool. The FAQ item for that is:

http://jakarta.apache.org/jyve-faq/Turbine/screen/DisplayQuestionAnswer/acti
on/SetAll/project_id/2/faq_id/16/topic_id/196/question_id/752

Hope this helps.

--
Martin Cooper
Tumbleweed Communications


----- Original Message -----
From: "Peter Doyle" <pe...@teomedia.com>
To: <st...@jakarta.apache.org>
Sent: Monday, January 29, 2001 4:23 AM
Subject: struts-config too large


> Hi,
>  How can I divide struts-config into a number of smaller xml files??
> The struts-config for the application Im developing is now at 400+ lines.
> This is too large to manage and will only get bigger.
> It does not make sense to divide the application into multiple smaller
apps
> so I need to make the config file more manageable.
>
> Thanks,
> Peter
>
>