Mail Archive Home | enhydra List | September 2004 Index
| <-- Date Index --> | <-- Thread Index --> |
we extend the BasePO object, so the runPO method passes in a HttpPresentation object. The HttpPresentation object has a member ("application") that points to the Application object. The Application object has a getConfig() method, which I used to get a Config object, and used that to access the value of the config parameter using the getString() method.
Slobodan Vujasinovic wrote:
You can examine sources of Enhydra Demo Applications! For example, in XalanDoc application main application class 'xalanDoc.XalanDoc.java' as 'public static' attribute has applications 'Config' object, initialized in 'startup()' method, and can be accessed from any applications class. Regards, Slobodan Vujasinovic Enhydra Development Team ----- Original Message ----- From: "Jeremy Ashcraft" <jashcraft@xxxxxxxxxx> To: <enhydra@xxxxxxxxxxxxx> Sent: Tuesday, September 07, 2004 20:19 Subject: [enhydra] reading a config valueI'd like to be able to access a value from the application config file (cm.conf) inside of a servlet. Any ideas on how I can accomplish this? -- jeremy ashcraft operations/development EDucation GATEways jashcraft@xxxxxxxxxx---------------------------------------------------------------------------- ------ You receive this message as a subscriber of the enhydra@xxxxxxxxxxxxxmailing list.To unsubscribe: mailto:enhydra-unsubscribe@xxxxxxxxxxxxx For general help: mailto:sympa@xxxxxxxxxxxxx?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws------------------------------------------------------------------------ -- You receive this message as a subscriber of the enhydra@xxxxxxxxxxxxx mailing list. To unsubscribe: mailto:enhydra-unsubscribe@xxxxxxxxxxxxx For general help: mailto:sympa@xxxxxxxxxxxxx?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
-- jeremy ashcraft operations/development EDucation GATEways jashcraft@xxxxxxxxxx
| <-- Date Index --> | <-- Thread Index --> |
Powered by MHonArc.
Copyright © 1999-2005, ObjectWeb Consortium | contact | webmaster.