Hi!
Thank's for the answer again. > There are two options: > a) Implement your class as an Avalon service. > You find more information in the Avalon framework documentation: > http://excalibur.apache.org/framework/guide-cop-in-avalon.html I changed the code to look like that: public abstract class Home extends BasePage implements Serviceable { private ServiceManager manager; public void service(ServiceManager manager) throws ServiceException { this.manager = manager; } public String getlenya() throws ServiceException, PublicationException { Request request; ContextUtility context = null; try { context = (ContextUtility) this.manager.lookup(ContextUtility.ROLE); request = context.getRequest(); } finally { this.manager.release(context); } DocumentFactory factory = DocumentUtil.getDocumentFactory(this.manager, request); . . . } } But it still didn't work. Seems I haven't understood the full concept behind it fully at this point. Basically I try to access from a Apache Tapestry Page the content from Lenya. But if I run this code I still get "Unable to parse OGNL expression 'lenya': lenya" a Tapestry error. What is my mistake? Thank's in advance. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
