struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject not working
Date Fri, 10 Jun 2011 16:31:17 GMT
I have some custom properties I want available in my application. 
Unfortunately,  I am unable to get the properties to work in struts 2.2.3

My property file is located:  WEB-INF\classes\

Contents of

theme.debug.value = true
static.content.server.url = /static
jquery.core.version = 1.6.1
jquery.ui.version = 1.8.13
jquery.ui.external.bgiframe.version = 2.1.2

My file contains the following property:

Here is how I'm attempting to reference the property:

<s:text name="static.content.server.url" />

I also looked at the struts2 source to make sure I am using the property 
correctly (package org.apache.struts2.config.SettingsTest ).

Judging from this test class it appears that I am:

    public void testSettings() {
        assertEquals("12345", Settings.get(StrutsConstants.
        assertEquals("\temp", Settings.get(StrutsConstants.

        assertEquals("test,org/apache/struts2/othertest", Settings.get( 
        assertEquals("testvalue", Settings.get("testkey"));
        assertEquals("othertestvalue", Settings.get("othertestkey"));

        int count = getKeyCount();
        assertEquals(12, count);

Is there a way to expose what properties are available for reference?

What am I missing here?

Thank you.


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message