You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by th...@webmd.net on 2002/03/19 18:07:32 UTC

Struts config, can it have includes?

Is it possible to have a struts-config.xml file that simply does nothing
more than include other xml-files which contain all the form-bean and
action tags?   Or does everything have to be slam-dunked into the main
struts-config.xml.    Reason I ask is that we have 3 developers here
developing a struts application.   Each one of us needs to create about
40-60 actions or so.    It would be easier to have many different .xml
files that each of us can own that are simply included into the main
struts-config.xml file.   We're early into the development project and
someone will always have that file checked out.

thanks,
Theron


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Struts config, can it have includes?

Posted by Ted Husted <hu...@apache.org>.
You might want to look into the modular capabilities in the nightly
build (soon to be 1.1 beta 1). 

This allows you to break your application into modules, so each
developer can work be working their ownmodules within the same
application. 

-- Ted Husted, Husted dot Com, Fairport NY US
-- Developing Java Web Applications with Struts
-- Tel: +1 585 737-3463
-- Web: http://husted.com/about/services


theron.kousek@webmd.net wrote:
> 
> Is it possible to have a struts-config.xml file that simply does nothing
> more than include other xml-files which contain all the form-bean and
> action tags?   Or does everything have to be slam-dunked into the main
> struts-config.xml.    Reason I ask is that we have 3 developers here
> developing a struts application.   Each one of us needs to create about
> 40-60 actions or so.    It would be easier to have many different .xml
> files that each of us can own that are simply included into the main
> struts-config.xml file.   We're early into the development project and
> someone will always have that file checked out.
> 
> thanks,
> Theron
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Struts config, can it have includes?

Posted by Joseph Barefoot <jo...@hereuare.com>.
Interestingly enough, we do the exact same thing in our project (many .xml
files), and currently we use a perl script to merge the XML files (boo!).
However, I've been writing an Ant task that merges XML files into a single
file to replace the perl...but it's not finished (doh!).  Most of the code
is written, however--I just haven't had time to work out the kinks yet.
It's configurable to flat include the top-level (children of the root)
elements from each source file in the output file, or to merge the contents
of top-level elements with the same name into single Elements (w/ the same
name) in the output file.  You can set the DocType and such as well via task
attributes.

I'll probably have this tested and complete in a week or so, if you're
interested.  I plan to add more options as I think of them.

I'm not sure about the use of XML include references, but good luck if you
go that route. :)

regards,

Joe Barefoot


-----Original Message-----
From: theron.kousek@webmd.net [mailto:theron.kousek@webmd.net]
Sent: Tuesday, March 19, 2002 9:08 AM
To: Struts Users Mailing List
Subject: Struts config, can it have includes?



Is it possible to have a struts-config.xml file that simply does nothing
more than include other xml-files which contain all the form-bean and
action tags?   Or does everything have to be slam-dunked into the main
struts-config.xml.    Reason I ask is that we have 3 developers here
developing a struts application.   Each one of us needs to create about
40-60 actions or so.    It would be easier to have many different .xml
files that each of us can own that are simply included into the main
struts-config.xml file.   We're early into the development project and
someone will always have that file checked out.

thanks,
Theron


--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>