Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

How to overwrite default setting in Struts2

Shuai Zheng

2007-03-14

Replies:

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?


Regards,

Zheng Shuai
©2008 junlu.com - Jax Systems, LLC, U.S.A.