* Stefan Pietschmann:
> So, am I supposed to use this or not? If not, what would be a
> better way?
Don't getSitemapComponentManager(). Why don't you use your
ServiceManager to lookup the component?
You can also use the « session-context » input module to retrieve
the piece of information more nicely:
public static String getInputModuleAttribute(ServiceManager manager, String
module, String value) {
InputModule inputModule;
try {
ServiceSelector selector = (ServiceSelector)
manager.lookup(InputModule.ROLE + "Selector");
inputModule = (InputModule)selector.select(module);
return (String) inputModule.getAttribute(value, null,
null);
} catch (ServiceException e1) {
throw new CascadingRuntimeException("Could not select "
+ module + " input module", e1);
} catch (ConfigurationException e1) {
throw new CascadingRuntimeException("Could not get
input module value for " + module + ":" + value, e1);
}
}
Cheers,
--
Jean-Baptiste Quenot
Systèmes d'Information
ANYWARE TECHNOLOGIES
Tel : +33 (0)5 61 00 52 90
Fax : +33 (0)5 61 00 51 46
http://www.anyware-tech.com/