You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Christopher Cheng <ma...@chrisshare.net> on 2002/11/12 20:31:07 UTC

How do I split struts-config.xml without using subapps

My struts-config.xml is getting very long. Is it possible to split that into multiple files without using subapps?

Re: How do I split struts-config.xml without using subapps

Posted by Christopher Cheng <ma...@chrisshare.net>.
Hopefully 1.1 release or 1.2 would have it....

----- Original Message -----
From: "Eddie Bush" <ek...@swbell.net>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Wednesday, November 13, 2002 4:51 AM
Subject: Re: How do I split struts-config.xml without using subapps


> There was some discussion about possibly implementing this so that all
> configs worked the same (you can do this for tiles/validator).  Nothing
> has been implemented yet though (that I am aware of).  ... and they are
> called modules :-)  We sent many emails over the dev list to standardize
> on that one ;-)  Modules :-)
>
> Christopher Cheng wrote:
>
> >My struts-config.xml is getting very long. Is it possible to split that
into multiple files without using subapps?
> >
> >
>
> --
> Eddie Bush
>
>
>
>
>
> --
> 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: How do I split struts-config.xml without using subapps

Posted by Eddie Bush <ek...@swbell.net>.
There was some discussion about possibly implementing this so that all 
configs worked the same (you can do this for tiles/validator).  Nothing 
has been implemented yet though (that I am aware of).  ... and they are 
called modules :-)  We sent many emails over the dev list to standardize 
on that one ;-)  Modules :-)

Christopher Cheng wrote:

>My struts-config.xml is getting very long. Is it possible to split that into multiple files without using subapps?
>  
>

-- 
Eddie Bush





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


Re: How do I split struts-config.xml without using subapps

Posted by Christopher Cheng <ma...@chrisshare.net>.
Thanks, let me try it out.

----- Original Message -----
From: "Derek Lin" <de...@hotmail.com>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>;
"Christopher Cheng" <ma...@chrisshare.net>
Sent: Wednesday, November 13, 2002 3:35 AM
Subject: Re: How do I split struts-config.xml without using subapps


> I am doing exactly that:
>
> <!DOCTYPE struts-config PUBLIC
>           "-//Apache Software Foundation//DTD Struts Configuration
1.1//EN"
>           "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd"[
> <!ENTITY datasources SYSTEM "struts-datasources-config.xml">
> <!ENTITY plugins SYSTEM "struts-plugins-config.xml">
> ]>
> <struts-config>
> <!-- ==================================== Data Source Configuration -->
>   &datasources;
> <!-- ======================================== Form Bean Definitions -->
> ....
>
> The key is to use the <!ENTITY> tag. "<!ENTITY datasources SYSTEM
> "struts-datasources-config.xml">"
>
> Hope this helps.
>
> -- Derek
>
> ----- Original Message -----
> From: "Christopher Cheng" <ma...@chrisshare.net>
> To: <st...@jakarta.apache.org>
> Sent: Tuesday, November 12, 2002 11:31 AM
> Subject: How do I split struts-config.xml without using subapps
>
>
> My struts-config.xml is getting very long. Is it possible to split that
into
> multiple files without using subapps?
>
> --
> 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: How do I split struts-config.xml without using subapps

Posted by Derek Lin <de...@hotmail.com>.
I am doing exactly that:

<!DOCTYPE struts-config PUBLIC
          "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
          "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd"[
<!ENTITY datasources SYSTEM "struts-datasources-config.xml">
<!ENTITY plugins SYSTEM "struts-plugins-config.xml">
]>
<struts-config>
<!-- ==================================== Data Source Configuration -->
  &datasources;
<!-- ======================================== Form Bean Definitions -->
....

The key is to use the <!ENTITY> tag. "<!ENTITY datasources SYSTEM
"struts-datasources-config.xml">"

Hope this helps.

-- Derek

----- Original Message -----
From: "Christopher Cheng" <ma...@chrisshare.net>
To: <st...@jakarta.apache.org>
Sent: Tuesday, November 12, 2002 11:31 AM
Subject: How do I split struts-config.xml without using subapps


My struts-config.xml is getting very long. Is it possible to split that into
multiple files without using subapps?

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