You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Jim Anderson <ja...@jandernet.com> on 2004/02/28 19:22:01 UTC

splitting struts-config into multiple files

We have many apps that require the same global forwards. Rather than 
copy this info into the config file for each app, we'd like to be able 
to place it in a struts-config file that lives somewhere on the 
filesystem outside WEB-INF, and then specify that as one of the config 
files to use. I know it's possible to split struts-config, but is there 
some way that one of the config files can reside outside the app?

Thanks,

jim


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: splitting struts-config into multiple files

Posted by Jim Anderson <ja...@jandernet.com>.
Yes, that certainly sounds possible, but what I'd rather do, if it's 
possible, is to reference a "global forwards" config file at run time 
which resides externally of any app.

So my question is, "Are runtime config files that  reside outside the 
application context supported?" Perhaps a symbolic link from WEB-INF... 
Or maybe they could reside in a "static war"?

On Feb 29, 2004, at 7:03 AM, Nadeem Bitar wrote:

> You can take advantage of xdoclet merging capabilities.
> You would have your action mapping in struts-actions.xml, your global-
> forwards in global-forwards.xml, your form beans inside struts-forms.
> xml ... and xdoclet would merge the files for you.
>
>
>
> On Sat, 2004-02-28 at 13:36 -0700, Manish Singla wrote:
>
>> May be Ant task can help in your environment.
>>
>> HTH
>> Manish Singla
>>
>> Jim Anderson wrote:
>>
>>> We have many apps that require the same global forwards. Rather than
>>> copy this info into the config file for each app, we'd like to be 
>>> able
>>> to place it in a struts-config file that lives somewhere on the
>>> filesystem outside WEB-INF, and then specify that as one of the 
>>> config
>>> files to use. I know it's possible to split struts-config, but is 
>>> there
>>> some way that one of the config files can reside outside the app?
>>>
>>> Thanks,
>>>
>>> jim
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> -- 
> ************************
> Nadeem Bitar
> Software Engineer
> IzuCode, LLC
> 5230 Fiore Terrace #k208
> San Diego, Ca 92122
> ************************
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>

jim


Re: splitting struts-config into multiple files

Posted by Nadeem Bitar <na...@izucode.com>.
You can take advantage of xdoclet merging capabilities. 
You would have your action mapping in struts-actions.xml, your global-
forwards in global-forwards.xml, your form beans inside struts-forms.
xml ... and xdoclet would merge the files for you.



On Sat, 2004-02-28 at 13:36 -0700, Manish Singla wrote:

> May be Ant task can help in your environment.
> 
> HTH
> Manish Singla
> 
> Jim Anderson wrote:
> 
> > We have many apps that require the same global forwards. Rather than
> > copy this info into the config file for each app, we'd like to be able
> > to place it in a struts-config file that lives somewhere on the
> > filesystem outside WEB-INF, and then specify that as one of the config
> > files to use. I know it's possible to split struts-config, but is there
> > some way that one of the config files can reside outside the app?
> >
> > Thanks,
> >
> > jim
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
-- 
************************
Nadeem Bitar
Software Engineer
IzuCode, LLC
5230 Fiore Terrace #k208
San Diego, Ca 92122
************************ 


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: splitting struts-config into multiple files

Posted by Manish Singla <Ma...@Sun.COM>.
May be Ant task can help in your environment.

HTH
Manish Singla

Jim Anderson wrote:

> We have many apps that require the same global forwards. Rather than
> copy this info into the config file for each app, we'd like to be able
> to place it in a struts-config file that lives somewhere on the
> filesystem outside WEB-INF, and then specify that as one of the config
> files to use. I know it's possible to split struts-config, but is there
> some way that one of the config files can reside outside the app?
>
> Thanks,
>
> jim
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org