Using the java.util.ResourceBundle class does not work if you are
using the NetDynamics ClassLoader.

The following code, when put on a page, will cause a
"MissingResourceException": 

        public int this_onAfterInitEvent(CSpInitEvent event)
        {
                ResourceBundle curBundle =
                        ResourceBundle.getBundle("testres");
                
                String val =
                        curBundle.getString("this.is.a.test");

                CSpLog.send(this, CSpLog.WARNING,
                            "The value is : " + val);

        
                return (PROCEED);
        }

Be sure that you have a "testres.properties" file somewhere in
your NETDYN_CLASSPATH.  Also make sure that your properties
file has the correct entry in it ("this.is.a.test=whatever")

If you turn off the NetDynamics ClassLoader (CPService worker
option through the Command Center), then it works fine.

I consider this a serious bug, since anytime I want to make
changes to my project, I now have to restart the CPService,
rather than just doing a "Clear Cache"

Thanks. 
_________________________________________________________________________

For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html

For dire need help, email: [EMAIL PROTECTED]

Reply via email to