struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Husted" <hus...@apache.org>
Subject Re: struts.xml - change default location
Date Fri, 23 Mar 2007 20:26:53 GMT
Put a stub struts.xml on the classpath that loads your working
configuration from another location. If the stub is under classes and
the one you want is under WEB-INF, try

<struts>
    <include file="..\struts.xml"/>
</struts>

-HTH, Ted
 <http://www.husted.com/ted/blog/>

On 3/19/07, Bartek <bartek@consol.pl> wrote:
>
> Hi
>
> I have to face up the following issue. My location of struts.xml shoudl be
> WEB-INF directory, not WEB-INF/classes.
> What is the easiest way to achieve this?? I tried several different config
> locations (e.g. WEB-INF/struts.xml) for StrutsXmlConfigurationProvider, none
> of them worked. Creating custom configuration provider might help, but it is
> pojo by default , protocol independant and therefore without any
> ServletContext access - what is a pain in this case.
>
> Cheers
> bartek

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


Mime
View raw message