Ah, I believe I figured it out. It actually works exactly how we want it. Why we see a problem is because of this devMode setting. The problem is XWork expects a "devMode" property, but Struts wants "struts.devMode". When we load default.properties, if we detected a "struts.devMode" property, we create a "devMode" property for XWork automatically.

Therefore, if you put in struts-default.xml:

<constant name="devMode" value="false" />
<constant name="struts.devMode" value="false" />

It should work just fine, as should the rest of the properties. Still, before we move them, perhaps we should resolve what to do with their comments.

Don

Ted Husted wrote:
On 11/21/06, Ted Husted <[EMAIL PROTECTED]> wrote:
# struts.devMode = false

devMode was just an example. The same thing seems to happen with most
any setting in default.properties. Having them in both places doesn't
cause a build error, but I didn't test to see if struts-default.xml
supercedes default.properties, as you would expect.

-Ted.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to