Java Mailing List Archive

http://www.gg3721.com/

Home » Struts Users Mailing List »

How to overwrite default setting in Struts2

stanlick

2008-09-08


Author LoginPost Reply

Has struts.configuration.files been removed from 2.1.1?





Laurie Harper wrote:
>
> Shuai Zheng wrote:
>> Dear All,
>>
>> I try to use my own setting to overwrite the default settings.
>> Following line is added into my struts.properties:
>> struts.configuration.files=struts-heal-default.xml,struts-plugin.xml,
>> struts.xml
>>
>> I have a struts-heal-default.xml in my classpath to re-define the stack,
>> but
>> this does not works.
>>
>> Based on the document:
>> http://struts.apache.org/2.x/docs/struts-defaultxml.html
>> There is following words: To exclude the struts-default.xml or to provide
>> your own version, see the struts.configuration.files setting in
>> struts.properties
>> <http://struts.apache.org/2.x/docs/strutsproperties.html>.
>>
>> But this does not works.
>>
>> BTW: I delete the struts-default.xml from the core.jar, it gives me
>> exception when startup. So it means the system still try to use this
>> struts-default.xml. Why?
>
> I haven't tried modifying that setting, so it's possible this is a bug.
> However, have you verified that the struts.properties file really is
> deployed in the right location? Have you tried setting other
> configuration values to confirm those are picked up?
>
> Try to narrow the scope of the problem as much as possible then post
> again with the results.
>
> L.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>

--
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 gg3721.com - Jax Systems, LLC, U.S.A.